查询CM订单(USER_DATA)
接口描述
查询CM订单状态
HTTP请求
GET /papi/v1/cm/order
请求权重
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
symbol | STRING | YES | |
orderId | LONG | NO | |
origClientOrderId | STRING | NO | |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
注意:
orderId
或origClientOrderId
必须至少发送一个- 请注意,如果订单满足如下条件,不会被查询到:
- 订单的最终状态为
CANCELED
或EXPIRED
, AND- 订单没有任何的成交记录,并且
- 订单生成时间 + 3天 < 当前时间
响应示例
{
"avgPrice": "0.0",
"clientOrderId": "abc",
"cumBase": "0",
"executedQty": "0",
"orderId": 1917641,
"origQty": "0.40",
"origType": "LIMIT",
"price": "0",
"reduceOnly": false,
"side": "BUY",
"status": "NEW",
"symbol": "BTCUSD_200925",
"pair": "BTCUSD",
"positionSide": "SHORT",
"time": 1579276756075,
"timeInForce": "GTC",
"type": "LIMIT",
"updateTime": 1579276756075
}