v1

latestOpenAPI 3.1.02026-07-2410781551.8 KB
Price & OHLCV

OHLCV V3 - Pair

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

get/defi/v3/ohlcv/pair

Query parameters

addressstring required

The address of a pair 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.

time_frominteger required

Specify the start time using unix timestamps in seconds

time_tointeger required

Specify the end time using unix timestamps in seconds

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

inversiontrue | false

Indicate whether to invert the base/quote on pair. Default: false

Headers

x-chain'solana' | 'bsc' | 'base' | 'ethereum' | 'monad' | 'aptos' | '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 pair

successboolean required