v1

latestOpenAPI 3.0.32026-07-1492428.9 KB
Exchange

/exchange/candlesticks

Retrieves candle stick data for a market.

get/v1/exchange/candlesticks

Query parameters

symbolstring required

The market symbol to get the klines for.

interval'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '1w' | '1Mo' | 'UNSPECIFIED' required

The interval to get the klines for.

type'Last' | 'Market' | 'Oracle' | 'UNSPECIFIED' required

Candle price type (last price, market price or oracle).

startTimeAtMillisinteger

Timestamp in milliseconds in ms to get klines from.

endTimeAtMillisinteger

Timestamp in milliseconds in ms to get klines until.

limitinteger

Default 50; max 1000.

pageinteger

The page number to retrieve in a paginated response.

Response

Kline/candlestick data

string[] required

Example response

[
  [
    1499040000000,
    "163479000",
    "800000000",
    "15758000",
    "15771000",
    "148976114278150",
    1499644799999,
    "2434190553340",
    308
  ]
]