查询CM条件单历史(USER_DATA)
接口描述
查询CM条件单历史
HTTP请求
GET /papi/v1/cm/conditional/orderHistory
请求权重
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
symbol | STRING | YES | |
strategyId | LONG | NO | |
newClientStrategyId | STRING | NO | |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
注意:
strategyId
与newClientStrategyId
中的一个为必填参数.NEW
状态的条件订单不会返回- 请注意,如果订单满足如下条件,不会被查询到:
- 订单的最终状态为
CANCELED
或者EXPIRED
, 并且- 订单没有任何的成交记录, 并且
- 订单生成时间 + 3天 < 当前时间
响应示例
{
"newClientStrategyId": "abc",
"strategyId":123445,
"strategyStatus":"TRIGGERED",
"strategyType": "TRAILING_STOP_MARKET",
"origQty": "0.40",
"price": "0",
"reduceOnly": false,
"side": "BUY",
"positionSide": "SHORT",
"stopPrice": "9300",
"symbol": "BTCUSD",
"orderId": 12123343534, //条件单触发后普通单id,当条件单被触发后才有
"status": "NEW", //条件单触发后普通单状态, 当条件单被触发后才有
"bookTime": 1566818724710, //条件单下单时间
"updateTime": 1566818724722,
"triggerTime": 1566818724750,
"timeInForce": "GTC",
"type": "MARKET", //条件单触发后普通订单类型
"activatePrice": "9020",
"priceRate": "0.3",
"workingType":"CONTRACT_PRICE",
"priceProtect": false,
"priceMatch": "NONE"
}