Query All CM Orders (USER_DATA)
API Description
Get all account CM orders; active, canceled, or filled.
HTTP Request
GET /papi/v1/cm/allOrders
Request Weight
20 with symbol, 40 with pair
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| symbol | STRING | YES | |
| pair | STRING | NO | |
| orderId | LONG | NO | |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| limit | INT | NO | Default 50; max 100. |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
- Either
symbolorpairmust be sent.- If
orderIdis set, it will get orders >= that orderId. Otherwise most recent orders are returned.- These orders will not be found:
- order status is
CANCELEDorEXPIRED, AND- order has NO filled trade, AND
- created time + 3 days < current time
Response Example
[
{
"avgPrice": "0.0",
"clientOrderId": "abc",
"cumBase": "0",
"executedQty": "0",
"orderId": 1917641,
"origQty": "0.40",
"origType": "LIMIT",
"price": "0",
"reduceOnly": false,
"side": "BUY",
"positionSide": "SHORT",
"status": "NEW",
"symbol": "BTCUSD_200925",
"pair": "BTCUSD",
"time": 1579276756075, // order time
"timeInForce": "GTC",
"type": "LIMIT",
"updateTime": 1579276756075 // update time
}
]