Getting Started
Public Data
Trading
- POSTPlace order
- DELCancel order
- DELCancel multiple orders
- GETGet order
- GETGet orders
- PUTEdit order
- POSTPlace algo order
- DELCancel algo order
- DELCancel multiple algo orders
- DELCancel all orders by symbol
- GETGet algo order
- GETGet algo orders
- PUTEdit algo order
- GETGet transaction by trade id (last 3 months)
- GETGet transaction history (in the past 2 years)
- GETGet trading fee
- POSTCancel all after
Account
Assets
Futures
Spot Margin
Websocket Streams
- Introduction
- Public Market Data
- Private User Data
- Commands
Public Market Data
Kline
Copy
{
"topic": "kline@SPOT_BTC_USDT@1m",
"ts": 1618822432146,
"data":{
"s": "SPOT_BTC_USDT", // symbol
"t": "1m", // kline type
"o": "56948.97", // open
"c": "56891.76", // close
"h": "56948.97", // high
"l": "56889.06", // low
"v": "44.00947568", // volume in base token
"a": "2504584.9", // amount in USDT
"st": 1618822380000, // kline start timestamp
"et": 1618822440000, // kline end timestamp
"ts": 1614152260000 // kline generation time
"tts": 1614152250000 // last trade time
}
}
Topic: kline@{symbol}
@{time}
Push interval: Push every second if a new trade occurs in that second. Otherwise, push only when a new trade occurs within the same candle. A final push is sent when the candle closes, even if no trades occurred during the candle.
{time}
: 1m/3m/5m/15m/30m/1h/2h/4h/6h/12h/1d/3d/1w/1M
Subscribe to the latest klines (OHLC) updates of the subscribed symbol.
Copy
{
"topic": "kline@SPOT_BTC_USDT@1m",
"ts": 1618822432146,
"data":{
"s": "SPOT_BTC_USDT", // symbol
"t": "1m", // kline type
"o": "56948.97", // open
"c": "56891.76", // close
"h": "56948.97", // high
"l": "56889.06", // low
"v": "44.00947568", // volume in base token
"a": "2504584.9", // amount in USDT
"st": 1618822380000, // kline start timestamp
"et": 1618822440000, // kline end timestamp
"ts": 1614152260000 // kline generation time
"tts": 1614152250000 // last trade time
}
}
Copy
{
"topic": "kline@SPOT_BTC_USDT@1m",
"ts": 1618822432146,
"data":{
"s": "SPOT_BTC_USDT", // symbol
"t": "1m", // kline type
"o": "56948.97", // open
"c": "56891.76", // close
"h": "56948.97", // high
"l": "56889.06", // low
"v": "44.00947568", // volume in base token
"a": "2504584.9", // amount in USDT
"st": 1618822380000, // kline start timestamp
"et": 1618822440000, // kline end timestamp
"ts": 1614152260000 // kline generation time
"tts": 1614152250000 // last trade time
}
}
Assistant
Responses are generated using AI and may contain mistakes.