Get Token Price History
This endpoint returns all Historical Prices that occurred within the given date range (supports pagination). The price at each timestamp reflects the last traded price on chain. Supported chains: ethereum
, polygon
, optimism
, arbitrum
, canto
, base
, avalanche
.
Parameters
Parameter | Description | Type |
---|---|---|
chain_id | A keyword (i.e. "ethereum") specifying the blockchain to query. Defaults to ethereum . |
string |
token_address | required The contract address of the token to filter results by (supports ENS names). | string |
from_timestamp | required The earlier date, inclusive (in ISO-8601 format ex. YYYY-MM-DDTHH:MM:SS ). |
date-time |
to_timestamp | required The later date, inclusive (in ISO-8601 format ex. YYYY-MM-DDTHH:MM:SS ). |
date-time |
interval | required The interval to fetch prices for (example: 1m , 5m , 15m , 30m , 1h , 1d , etc.). |
string |
order | The order in which to retrieve the results (either asc or desc ). Defaults to asc . |
string |
limit | The maximum number of results to retrieve. Defaults to 100 . |
string |
curl -X GET \
'https://api.transpose.io/prices/history?chain_id=ethereum' \
-H 'X-API-KEY: BtRVYj7dgnYUcr1gSSfWhmrTShIb8RBG' \
Got questions? Join our Discord
Discord is the primary home of the Transpose developer community. Join us to ask questions, share your work, and get help.