获取交易对风险基金余额
GET
/az/future/market/v1/public/contract/risk-balance
注:此方法不需要签名
请求参数
| 参数 | 类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
|---|---|---|---|---|---|
| symbol | string | true | 交易对 | ||
| direction | string | false | NEXT | 方向(PREV:上一页;NEXT:下一页) | PREV;NEXT |
| id | integer | false | N/A | id | |
| limit | integer | false | 10 | 条数 |
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": {
"hasPrev": false, //是否有上一页
"hasNext": true, //是否有下一页
"items": [
{
"id": "554744372432733187", //id
"coin": "usdt", //币种
"amount": "-10624.3177", //余额
"createdTime": 1761963365040 //时间戳
}
]
}
}