Skip to content

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.

Parameters

Parameter Description Type
chain_id A keyword (i.e. "ethereum") specifying the blockchain to query. Defaults to ethereum. string
token_address The contract address of the token to filter results by (supports ENS names). Defaults to 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2. string
from_timestamp The earlier date, inclusive (in ISO-8601 format ex. YYYY-MM-DDTHH:MM:SS). Defaults to 24 hours ago. date-time
to_timestamp The later date, inclusive (in ISO-8601 format ex. YYYY-MM-DDTHH:MM:SS). Defaults to current time. date-time
interval The interval to fetch prices for (example: 1m, 5m, 15m, 30m, 1h, 1d, etc.). Defaults to 1m. 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.