CorebanqCorebanq Developer Docs
FXv1

Retrieve exchange rates

Fetch exchange rates for a specific date, with optional filtering by base/target currency and rate type.

GET/v1/fx/rates

Query Parameters

base?string

Base currency code (e.g., EUR, CHF, USD)

target?string

Target currency code (e.g., EUR, CHF, USD)

date?string

Lookup business date in YYYY-MM-DD format. When omitted, the FX module anchors lookup to the current business date in the configured timezone. If lookback is enabled, the resolved rate may come from an earlier business date.

type?string

Rate type (BUY for buying the base currency, SELL for selling it, or MID for the midpoint reference rate)

Response Body

application/json

curl -X GET "https://example.com/v1/fx/rates"
[
  {
    "base_currency": "CHF",
    "target_currency": "USD",
    "rate": "1.0923",
    "type": "BUY",
    "date": "2024-03-20T00:00:00.000Z",
    "source": "SNB",
    "rate_at": "2019-08-24T14:15:22Z",
    "imported_at": "2019-08-24T14:15:22Z"
  }
]
Empty
Empty
Empty