Please note that this REST method requires the BCH 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": 1780951502,3"rates": {4"aed": 773.52,5"ars": 304586,6"aud": 298.92,7"bdt": 25826,8"bhd": 79.429}10}
1{2"ts": 1780951502,3"rates": {4"aed": 773.52,5"ars": 304586,6"aud": 298.92,7"bdt": 25826,8"bhd": 79.429}10}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free