Messages
No examples foundNo examples foundWebSocket 文檔
盤口深度(Depth)
WSS
/
v1
/
realtime
套餐權限
| 套餐 | 可用 |
|---|---|
| 免費版 | ❌ |
| 基礎版 | ✅ |
| 專業版 | ✅ |
| 全量套餐(A 股、港股、美股) | ✅ |
| 企業版 | ✅ |
支援市場
支援市場:美股、港股、A股、中國期貨、加密貨幣訂閱
{
"cmd": "subscribe",
"data": {
"channel": "depth",
"symbols": ["AAPL.US", "BTCUSDT"]
}
}
type對本次訂閱中的全部代碼生效。混合訂閱不同產品類型時請省略type;僅在代碼存在歧義時,按產品類型拆分訂閱並傳入對應值。
取消訂閱
{
"cmd": "unsubscribe",
"data": {
"channel": "depth",
"symbols": ["AAPL.US"]
}
}
服務器響應
{
"cmd": "depth",
"data": {
"symbol": "BTCUSDT",
"bids": [
["43250.50", "0.125"],
["43250.00", "0.250"]
],
"asks": [
["43251.00", "0.180"],
["43251.50", "0.320"]
],
"timestamp": 1703123456789
}
}
字段說明
| 字段 | 類型 | 描述 |
|---|---|---|
| symbol | string | 交易品種 |
| bids | array | 買盤檔位:[價格, 數量] |
| asks | array | 賣盤檔位:[價格, 數量] |
| timestamp | int | 服務器時間戳(毫秒) |
bids:價格降序asks:價格升序
Messages
No examples foundNo examples foundapi_key
type:httpApiKey
訂閱或取消訂閱盤口深度
type:object
訂閱或取消訂閱即時盤口深度。
盤口深度數據
type:object
即時推送的盤口深度數據。
