查詢市場深度
地址1 /openApi/contract/depth
接收參數
提交方式: GET
範例
curl -d /openApi/contract/depth
提交參數
參數名 | 是否必需 | 類型 | 例子 | 說明 |
---|---|---|---|---|
symbol | 是 | string | BTC-USDT | 交易對 |
limit | 否 | int | 50 | 返回結果條數,默認單邊50,最大100 |
返回參數
參數名 | 是否必填 | 類型 | 範例 | 說明 |
---|---|---|---|---|
errno | 是 | int | 0 | 狀態碼 |
errmsg | 是 | success | success | 狀態信息 |
result | 是 | array | 見示例 | 返回結果 |
result說明
參數名 | 是否必填 | 類型 | 範例 | 說明 |
---|---|---|---|---|
ts | 是 | long | 1499223904680 | 數據獲取時間 |
symbol | 是 | string | BTC-USDT | 交易對 |
asks | 是 | array | 見示例 | 賣盤,[price(成交價), amount(成交量)], 按price升序 |
bids | 是 | array | 見示例 | 買盤,[price(成交價), amount(成交量)], 按price降序 |
返回範例
JSON
{
"errno": 0,
"errmsg": "success",
"result": {
"symbol": "EOS-USDT",
"ts": 1499223904680,
"bids": [
[7964,0.0678],
[7963,0.9162],
[7961,0.1],
[7960,12.8898],
[7958,1.2],
[7955,2.1009],
[7954,0.4708],
[7953,0.0564],
[7951,2.8031],
[7950,13.7785],
[7949,0.125],
[7948,4],
[7942,0.4337],
[7940,6.1612],
[7936,0.02],
[7935,1.3575],
[7933,2.002],
[7932,1.3449],
[7930,10.2974],
[7929,3.2226]
],
"asks": [
[7979,0.0736],
[7980,1.0292],
[7981,5.5652],
[7986,0.2416],
[7990,1.9970],
[7995,0.88],
[7996,0.0212],
[8000,9.2609],
[8002,0.02],
[8008,1],
[8010,0.8735],
[8011,2.36],
[8012,0.02],
[8014,0.1067],
[8015,12.9118],
[8016,2.5206],
[8017,0.0166],
[8018,1.3218],
[8019,0.01],
[8020,13.6584]
]
}
}