본문으로 건너뛰기

cex_candle

Get historical OHLCV (Open, High, Low, Close, Volume) candlestick data from centralized exchanges. Essential for technical analysis, backtesting, and chart generation. Supports spot and futures markets with configurable intervals.

Usage hints:

  • Use 'from' and 'to' parameters with date range instead of pagination for time-series queries
  • Available intervals vary by exchange — call cex_candle_intervals first
  • Set currency to KRW for Korean Won denominated prices
  • Default market is spot; set market=futures for perpetual/futures data

REST endpoint

GET /api/v1/cex/candle — see REST reference.

Parameters

NameTypeRequiredDefaultDescriptionExample
exchangestringyesSpecifes exchange"..."
marketstringyesSpecifies market (spot, futures) (default: spot)"..."
symbolstringyesSpecifies symbol"..."
currencystringnoUSDSpecifies currency (USD, KRW) (default: USD)"USD"
intervalstringno1dSpecifies interval (default: 1d)"1d"
fromstringnoSpecifies from"..."
tostringnoSpecifies to"..."

Example invocation

JSON-RPC tools/call payload:

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "cex_candle",
"arguments": {
"exchange": "...",
"market": "...",
"symbol": "...",
"currency": "USD",
"interval": "1d"
}
}
}