Please note that this REST method requires the EVM Blockbook enabled on your Quicknode endpoint.
Query Parameters
- timestampinteger
Unix timestamp (in seconds) for the date to query rates. If not provided, returns the latest available rates.
- blockinteger
Return fiat rates as of the specified block height.
- tokenstring
Return the rate for the specified token contract address instead of the base coin.
Returns
- tsinteger
Unix timestamp of the rates
- ratesobject
Exchange rates for all available fiat currencies
- {currency}integer
Exchange rate in the given fiat currency. All available currencies are listed (e.g., usd, eur, gbp, jpy, etc.)
Request
Response
1{2"ts": 1574380800,3"rates": {4"aed": 591.9416,5"ars": 9627.415,6"aud": 237.3626,7"bdt": 13666.941,8"bhd": 60.7610369}10}
1{2"ts": 1574380800,3"rates": {4"aed": 591.9416,5"ars": 9627.415,6"aud": 237.3626,7"bdt": 13666.941,8"bhd": 60.7610369}10}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free