import_exchange_rates
Import published BAZG rate payloads into the rate store, scaling per-unit quotations and rejecting mis-paired series to store accurate daily and monthly rates.
Instructions
Import a published BAZG rate payload into the rate store as source='rate_api'. payload is the response body from the endpoint describe_rate_feed names, verbatim. The payload identifies its own series; pass series to have a mis-paired payload refused rather than mis-dated. Daily rates are stored on each date in the payload's validity window (not on the determination date), monthly averages once on the first of their month, and per-unit quotations (100, 1000, 10000) are scaled. A published rate TILL cannot hold exactly at twelve decimal places is reported rather than rounded; the whole BAZG daily series is within that (its deepest is nine places).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series | No | ||
| payload | Yes | ||
| currencies | No | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |