v1

latestOpenAPI 3.1.02026-07-2410781551.8 KB
Price & OHLCV

Price - Historical

Retrieve historical price line chart of a specified token.

get/defi/history_price

Query parameters

addressstring required

The address of the token contract.

address_type'token' | 'pair' required
type'1m' | '3m' | '5m' | '15m' | '30m' | '1H' | '2H' | '4H' | '6H' | '8H' | '12H' | '1D' | '3D' | '1W' | '1M' required

OHLCV time frame.

time_frominteger required

Specify the start time using unix timestamps in seconds

time_tointeger required

Specify the end time using unix timestamps in seconds

ui_amount_mode'raw' | 'scaled' | 'both'

Indicate whether to use the scaled amount for scaled ui amount tokens. Only support solana

Headers

x-chain'solana' | 'ethereum' | 'arbitrum' | 'avalanche' | 'bsc' | 'optimism' | 'polygon' | 'base' | 'zksync' | 'monad' | 'hyperevm' | 'aptos' | 'fogo' | 'mantle' | 'megaeth' | 'robinhood' | 'sui'

A chain name listed in supported networks.

Response

JSON object containing values and unix timestamps of a token or pair

successboolean required