v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Market

Kline/Candlestick Data

Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.

  • If startTime and endTime are not sent, the most recent klines are returned.

Weight(IP): 2

get/api/v3/klines

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

interval'1s' | '1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M' required
Example:"1m"

kline intervals

startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

timeZonestring

Default: 0 (UTC)

limitinteger
Example:5

Default 500; max 1000.

Response

Kline data

Example response

[
  [
    1499040000000,
    "0.01634790",
    "0.80000000",
    "0.01575800",
    "0.01577100",
    "148976.11427815",
    1499644799999,
    "2434.19055334",
    308,
    "1756.87402397",
    "28.46694368",
    "17928899.62484339"
  ]
]