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
BBO
Copy
{
"topic": "bbo@SPOT_BTC_USDT",
"ts": 1618820361552,
"data": {
"s": "SPOT_BTC_USDT", // symbol
"ap": "42598.2", // best ask price
"aq": "1.05", // best ask quantity
"bp": "42598.1", // best bid price
"bq": "2.01" // best bid quantity
"ts": 1618820361540 // bbo generation time in engine
}
}
Topic: bbo@{symbol}
Push interval: 10ms
Subscribe to the BBO data.
Copy
{
"topic": "bbo@SPOT_BTC_USDT",
"ts": 1618820361552,
"data": {
"s": "SPOT_BTC_USDT", // symbol
"ap": "42598.2", // best ask price
"aq": "1.05", // best ask quantity
"bp": "42598.1", // best bid price
"bq": "2.01" // best bid quantity
"ts": 1618820361540 // bbo generation time in engine
}
}
Copy
{
"topic": "bbo@SPOT_BTC_USDT",
"ts": 1618820361552,
"data": {
"s": "SPOT_BTC_USDT", // symbol
"ap": "42598.2", // best ask price
"aq": "1.05", // best ask quantity
"bp": "42598.1", // best bid price
"bq": "2.01" // best bid quantity
"ts": 1618820361540 // bbo generation time in engine
}
}
Assistant
Responses are generated using AI and may contain mistakes.