Please note that this RPC method requires the Blockbook RPC enabled on your Quicknode endpoint.
Parameters
- objectobjectREQUIRED
An object with the following fields:
- timestampstringREQUIRED
One or more Unix timestamps (in seconds), comma-separated.
- currencystring
Return only the rate for this currency code (for example
usd).
- tokenstring
Return the rate for the specified token contract address instead of the base coin.
Returns
- tsinteger
Unix timestamp of the ticker entry. The result is an array of these objects, one per requested timestamp.
- ratesobject
Map of currency/token code to its exchange rate at that timestamp.
Request
Response
1{2"id": 1,3"result": [4{5"ts": 1780876800,6"rates": {7"usd": 35.128}9}10],11"jsonrpc": "2.0"12}
1{2"id": 1,3"result": [4{5"ts": 1780876800,6"rates": {7"usd": 35.128}9}10],11"jsonrpc": "2.0"12}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free