cURL
curl --request GET \ --url https://api.chainbase.online/v1/token/price/history \ --header 'x-api-key: <x-api-key>'
{ "data": [ { "price": 123, "symbol": "<string>", "decimals": 123, "updated_at": "2023-11-07T05:31:56Z" } ], "code": 0, "message": "ok" }
Get the historical price of the specified token.
"demo"
chain network id, see list of details
The address of the token contract
^0[xX]{1}[a-fA-F0-9]{40}$
Inclusive start timestamp
Inclusive end timestamp, the interval should not exceed 90 days
Successful Response
Show child attributes