v1

latestOpenAPI 3.1.02026-07-2410781551.8 KB
Price & OHLCV

OHLCV V3

Retrieve candlestick data in OHLCV format of a specified token. Maximum 5000 records. Compared to v1: Added 1s, 15s, and 30s intervals and no candle padding

get/defi/v3/ohlcv

Query parameters

addressstring required

The address of the token contract.

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

OHLCV V3 time frame.

currency'usd' | 'native'

Currency in which OHLCV data is presented. Choose between usd or native token.

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

mode'range' | 'count'

Select either range (time range) or count (number of candles). If mode is count, time_from and time_to params must exist but not both. Default: range

count_limitinteger

Specify the maximum candles returned. Only used with mode "count". Default: 5000

paddingtrue | false

Indicate whether to use padding on empty candles. Default: false

outliertrue | false

Indicate whether to allow outliers exist in the results. Default: true

Headers

x-chain'solana' | 'bsc' | 'base' | 'ethereum' | 'monad' | 'fogo' | 'mantle' | 'hyperevm' | 'megaeth' | 'robinhood'

Solana, Base, BSC, Ethereum, Monad, Fogo, Mantle, Hyperevm, Megaeth, Robinhood network .

Response

JSON object containing list of ohlcv data of a token

successboolean required