Browse all documentation

Current exchange rates API reference

Request current rates by base and quote currencies.

One base unit equals each returned quote. REST and fx_get_rates use the same schema.

Request

REST
curl --request GET \
  --url "https://api.narwhalapi.com/v1/fx/rates/USD?currencies=EUR,JPY" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
ParameterRule
baseRequired uppercase circulating ISO 4217 code.
currenciesOptional comma-separated list of 1–64 unique quote currencies. The base currency cannot appear in the list. Omit it for all supported quotes. The MCP tool takes a JSON array.

Response

200 OK
{
  "base": "USD",
  "market_session": "open",
  "rates": [
    {
      "currency": "EUR",
      "rate": "0.91090",
      "timestamp": "2026-11-20T05:54:26.558140Z",
      "stale": false
    },
    {
      "currency": "JPY",
      "rate": "159.19",
      "timestamp": "2026-11-20T05:54:26.558140Z",
      "stale": false
    }
  ]
}

Rates are ordered records, not dynamic keys. Every rate keeps its own timestamp and stale state.

Freshness

market_session is open, weekend, or interbank_closed. A weekend response can remain usable when its timestamp and stale state are clear.

Rates are live for every account, including accounts that only use free credit. The prices stream has ended; poll this route instead. Prices stream reference

Errors

400 invalid_query · 401 invalid_api_key · 404 currency_not_supported · 429 rate_limit_exceeded · 402 insufficient_credits · 503 upstream_unavailable

A currency code with an invalid format returns 400. A correctly formatted currency code that Narwhal does not serve returns 404.

Read errors and credits · View coverage · Exchange rate API

Was this page helpful?