import_exchange_rates
Imports published BAZG exchange rates into your rate list, assigning each rate to the dates it is valid for so accounting entries use correct daily or 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). CONSEQUENCE: Imports the published BAZG exchange rates into your rate list, each on the dates it is valid for. Imported rates stay unchanged; an entry one priced wrongly is fixed with a correcting entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series | No | ||
| payload | Yes | ||
| currencies | No | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |