跳到主要内容

查询未完成订单(做市商)

GET

/az/future/cache/v1/open-orders

备注​

仅供做市商使用

限流规则​

200/s/apikey

请求参数​

参数类型是否必须默认值描述取值范围
symbolstringtrueN/A交易对
sizeintegerfalse20单页数
fromIdintegerfalseN/A分页fromId,默认排序按照 orderId

Java

public void getMarketConfig() {
String text = HttpUtil.get(URL + "/data/api/az/future/trade/v1/getMarketConfig");
System.out.println(text);
}

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"total": 7,
"size": 7,
"content": [
{
"orderId": "555841481206904320", //订单id
"clientOrderId": "123", //自定义id
"symbol": "btc_usdt", //交易对
"state": "NEW", //订单状态 NEW,PLACED,PARTIALLY_FILLED
"contractSize": 0.000100000000, //合约面值
"orderType": "LIMIT", //订单类型
"orderSide": "BUY", //买卖方向
"positionSide": "LONG", //持仓方向
"positionType": "CROSSED", //仓位类型
"timeInForce": "GTC", //有效类型
"price": "90000", //委托价格
"origQty": "10000", //数量(币)
"avgPrice": null, //平均价格
"executedQty": "0", //已成交数量(币)
"marginFrozen": "4554", //占用保证金
"leverage": 20, //下单时杠杠
"openPrice": null,
"closeProfit": "0", //已实现盈亏
"createdTime": 1762224936156,
"updatedTime": 1762224936227,
"markPrice": "106524.9" //订单上的标记价格
}
],
"page": 0,
"ps": 0,
"total": 0
},
"returnCode": 0
}