GET
/
v1
/
token
/
price
/
history
curl --request GET \
  --url https://api.chainbase.online/v1/token/price/history \
  --header 'x-api-key: <x-api-key>'
{
  "code": 0,
  "message": "ok",
  "data": [
    {
      "price": 123,
      "symbol": "<string>",
      "decimals": 123,
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Headers

x-api-key
string
required

Query Parameters

chain_id
string
required

chain network id, see list of details

contract_address
string
required

The address of the token contract

from_timestamp
integer
required

Inclusive start timestamp

end_timestamp
integer
required

Inclusive end timestamp, the interval should not exceed 90 days

Response

200
application/json
Successful Response
data
object[]
required
code
integer
default:
0
message
string
default:
ok