Historical candlesticks (OHLCV)
Query the OHLCV candle series for a trading object over the selected interval and time range.
Available data
- Returns
- The OHLCV candle series for a trading object over the selected interval and time range
- Market coverage
- Crypto and US and Hong Kong equities
- Query granularity
- One listing and one interval per query; data from different listings is not merged
Authentication
Query Parameters
Required.
Provide at least one of listing_id, asset_id, or query (aliases ticker / symbol / base also work).
listing_idstringqueryExamplelisting_gate_BTC_USDT_spotoptionalCanonical listing identifier
asset_idstringqueryExampleasset_btcoptionalCanonical asset identifier
querystringqueryExampleBTCoptionalSearch text used to resolve the query object
tickerstringqueryExampleBTCoptionalTicker alias of query.
symbolstringqueryExampleBTCoptionalSymbol alias of query.
basestringqueryExampleBTCoptionalBase asset code of the trading pair
Equities require market; venue / market_type are mainly for crypto (bare crypto may default to Gate spot).
Market of the query object
venuestringqueryExamplegateoptionalTrading venue code to query
Type of traded product
quotestringqueryExampleUSDToptionalQuote asset code of the trading pair
Prefer for equity flows; supports start_time / end_time (aliases from / to).
start_timedatetimequeryExample2026-07-01T00:00:00ZoptionalStart of the query time range
end_timedatetimequeryExample2026-07-31T23:59:59ZoptionalEnd of the query time range
fromdatetimequeryExample2026-07-01T00:00:00ZoptionalStart date of a custom query range
todatetimequeryExample2026-07-31T23:59:59ZoptionalEnd date of a custom query range
All optional.
limitintegerqueryExample100optionalMaximum records returned per request
include_indicators=true adds indicator columns when available.
adjustmentenumqueryExamplerawoptionalEquity price-adjustment mode.
include_indicatorsbooleanqueryExamplefalseoptionalWhen true, adds indicator columns when available (default false).
Response
base_currencystringExampleBTCBase asset or currency code
quote_currencystringExampleUSDTQuote currency used for prices and amounts
timeframestringExample1hAggregation period for each record
volume_unitstringExamplebaseTraded quantity unit
volume_typestringExamplebase_amountTraded quantity measurement basis
Candlestick data array
open_timedatetimeExample2026-08-17T17:00:00ZStart time of the candlestick period
close_timedatetimeExample2026-08-17T18:00:00ZEnd time of the candlestick period
opennumberExample64114.5First traded price in the candlestick period
highnumberExample64119Highest traded price in the candlestick period
lownumberExample64077Lowest traded price in the candlestick period
closenumberExample64079.8Last traded price in the candlestick period
volumenumberExample16.336379Cumulative traded quantity during the period
volume_unitstringExamplebaseTraded quantity unit
base_currencystringExampleBTCBase asset or currency code
Aggregation period for this record
Availability of the business data
Availability of the business data
Response status and resolution information
Availability of the business data
actual_taskstringTask that was actually executed
route_reasonstringReason the task or object was selected
limitations[]string[]Known data limitations
updated_atdatetime | stringExample2026-08-17T17:07:12ZMost recent object or response update time
partialbooleanWhether the response contains only a subset of fields
resolution_reasonstringReason code for the object-resolution outcome
Unified object references
Object reference type
idstringExampleasset_btcCanonical object identifier
entity_idstringCanonical entity identifier
asset_idstringExampleasset_btcCanonical asset identifier
listing_idstringCanonical listing identifier
instrument_idstringCanonical financial instrument identifier
venue_idstringCanonical trading venue identifier
event_refstringRelated event identifier
market_idstringCanonical market object identifier
venuestringRelated platform code
resolved_fromstringExampleasset_entityInput used to resolve the object
resolution_confidencestringExampleresolvedObject resolution confidence