獲取交易對的深度信息
GET
/az/future/market/v1/public/q/depth
限流規則
10/s/ip
注:此方法不需要簽名
請求參數
| 參數 | 類型 | 是否必須 | 默認值 | 描述 | 取值範圍 |
|---|---|---|---|---|---|
| symbol | string | true | N/A | 交易對 | |
| level | integer | true | N/A | 檔位(min:1,max:50) |
Java
public void getKLine() {
String text = HttpUtil.get(URL + "/data/api/az/future/market/v1/getKLine?market=btc_usdt&type=1min&since=0");
System.out.println(text);
}
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "success",
"returnCode": 0,
"result": {
"t": 1761979495332, //時間
"s": "btc_usdt", //交易對
"u": 1761965792147, //updateId
"b": [ //買單
[
"109923.4",
"18679"
]
],
"a": [ //賣單
[
"109923.5",
"1773"
]
]
}
}