Query All CM Conditional Orders(USER_DATA)
API Description
Query All CM Conditional Orders
HTTP Request
GET /papi/v1/cm/conditional/allOrders
Request Weight
1 for a single symbol; 40 when the symbol parameter is omitted
Request Parameters
| Name | Type | Mandatory | Description | 
|---|---|---|---|
| symbol | STRING | NO | |
| strategyId | LONG | NO | |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| limit | INT | NO | Default 500; max 1000. | 
| recvWindow | LONG | NO | |
| timestamp | LONG | YES | 
Notes:
- These orders will not be found:
 
- order strategyStatus is
 CANCELEDorEXPIRED, AND- order has NO filled trade, AND
 - created time + 7 days < current time
 - The query time period must be less than 7 days( default as the recent 7 days).
 
Response Example
[
  {
    "newClientStrategyId": "abc", 
    "strategyId":123445,
    "strategyStatus":"TRIGGERED",
    "strategyType": "TRAILING_STOP_MARKET",  
    "origQty": "0.40",
    "price": "0",
    "reduceOnly": false,
    "side": "BUY",
    "positionSide": "SHORT",
    "stopPrice": "9300",                // please ignore when order type is TRAILING_STOP_MARKET
    "symbol": "BTCUSD", 
    "orderId": 12123343534,    //Normal orderID after trigger if appliable, only have when the strategy is triggered
    "status": "NEW",     //Normal order status after trigger if appliable, only have when the strategy is triggered
    "bookTime": 1566818724710,              // order time 
    "updateTime": 1566818724722,
    "triggerTime": 1566818724750,  
    "timeInForce": "GTC",
    "type": "MARKET",    //Normal order type after trigger if appliable
    "activatePrice": "9020",            // activation price, only return with TRAILING_STOP_MARKET order
    "priceRate": "0.3"                // callback rate, only return with TRAILING_STOP_MARKET order  
  }
]