Get current or historical fiat rates.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Modified between 0.5.0 and 0.6.0: Fiat currency selectors are bounded: at most 128 currency codes, each at most 16 characters. Fiat rates are fetched more reliably: CoinGecko throttling (HTTP 429) is handled and missing daily rates are filled in automatically, so fewer timestamps come back without a rate. Documented as it exists in 0.6.0.
Returns currency rates for the requested currency and date. If a rate is unavailable for the exact timestamp, the closest available rate can be returned. Responses include the actual rate timestamp. Without a currency parameter, all available currencies can be returned. A rate of -1 marks an unavailable or invalid currency for that timestamp.
Load estimate: Low to medium; specific currency lookups are cheap, while omitted currency and token lookups increase response size.
Parameters
currencystringqueryOptional currency code. When omitted, all available rates can be returned.
timestampinteger<int64>queryUnix timestamp for historical rates.
blockstringqueryBlock height or hash whose timestamp should be used for historical rates.
tokenstringqueryOptional token symbol or contract/address key for token-specific rates.
Response
Fiat rate ticker.
Bad Request
Unauthorized. Returned when the api-key header is missing, empty, or not accepted by the NOWNodes gateway. The body is plain text.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Unprocessable Entity. Returned by the NOWNodes gateway for requests it accepts but cannot process. The body is plain text.
Internal Server Error
Service Unavailable
Public API error. Returned when no fiat rate is available for the requested currency or timestamp.