get
https://api.connex.trade/api/v1/trading/orders
Retrieve order details for all NEW/OPEN status and in current portfolioId.
Permission
- Applies to both primary user and trading portfolio's API Key.
- Permission: READ.
Rate Limit
- 1200 requests per 60 seconds
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| sym | String | N | Trading pair unique identifier ,for example BINANCE_SPOT_BTC_USDT |
| exchange | String | N | Exchange type(BINANCE,OKX) |
| businessType | String | N | Business type(For example SPOT,PERP) |
| begin | String | N | Start of the query window, in milliseconds since Unix epoch. |
| end | String | N | End of the query window, in milliseconds since Unix epoch. |
| page | String | N | Current page (Default 1) |
| pageSize | String | N | Page size(Default 1000, max 1000) |
Response
| Field | Type | Remark |
|---|---|---|
| portfolioId | String | Portfolio ID |
| portfolioName | String | Portfolio Name |
| orderId | String | Order ID |
| clientOrderId | String | Customer-defined order ID |
| orderState | String | Order state(NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL) ; For detailed specifications regarding orderState, please refer to this link:https://apiconnex.readme.io/reference/order Tip: query order state in NEW/OPEN status and in current portfolioId. |
| sym | String | Trading pair unique identifier ,for example BINANCE_SPOT_BTC_USDT |
| side | String | Side(BUY,SELL) |
| exchangeOrderType | String | Exchange order type(LIMIT, MARKET) |
| exchangeType | String | Exchange type(BINANCE,OKX) |
| orderType | String | Order type(DMA, SYSTEM_LIQ, SYSTEM_REDUCE, REPLACE) ; For detailed specifications regarding orderType, please refer to this link:https://apiconnex.readme.io/reference/order |
| businessType | String | Business type(For example SPOT) |
| orderQty | String | Order quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin |
| quoteOrderQty | String | Order quote quantity, only use for Spot Market Buy order |
| limitPrice | String | Order price |
| timeInForce | String | Timeinforce (default GTC,enums:GTC,IOC,FOK,GTX) |
| reason | String | Failure reason message, if the order is rejected or cancelled by the system. |
| executedQty | String | Executed quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin |
| executedAvgPrice | String | Average execution price of the filled quantity. |
| executedAmount | String | Total executed quote amount. |
| reduceOnly | String | Reduce position orders only, "true" or "false" |
| lastExecutedQty | String | Quantity of the most recent fill, in the same unit as executedQty. |
| lastExecutedPrice | String | Price of the most recent fill. |
| lastExecutedAmount | String | Quote amount of the most recent fill. |
| fee | String | Cumulative trading fee for this order. Positive = fee charged (taker). "0" when the order earned a maker rebate instead (see rebate field). |
| feeCoin | String | Currency of the trading fee. Empty string if no fee was charged. |
| rebate | String | Cumulative maker rebate received. "0" for taker orders. For OKX spot: BUY orders return quote currency, SELL orders return base currency. For Binance spot: returns quote currency. For perpetuals: returns USDT. |
| rebateCoin | String | Currency of the rebate. Empty string if no rebate was received. |
| leverage | Integer | Leverage applied to this order or position. When businessType is SPOT/MARGIN, the endpoint returns NULL. |
| borrowAmount | String | Borrowed amount for margin trading (if applicable). |
| borrowAsset | String | Asset symbol of the borrowed currency. |
| positionSide | String | Position side. In One-Way Mode, this is always NONE. In Hedge Mode, LONG and SHORT indicate the order belongs to the long or short leg of the position. |
| tpTriggerPrice | String | Take-profit trigger price. |
| tpTriggerType | String | Take-profit trigger price type: LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| tpPrice | String | Take-profit order price; If the price is 0, take-profit will be executed at the market price. |
| slTriggerPrice | String | Stop-loss trigger price |
| slTriggerType | String | Stop-loss trigger price type: LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| slPrice | String | Stop-loss order price; If the price is 0, stop-loss will be executed at the market price. |
| createAt | String | Order creation time, in milliseconds since Unix epoch. |
| updateAt | String | Last update time of the order, in milliseconds since Unix epoch. |
| action | String | Current in-flight action on the order, if any. AMEND_PENDING — amendment submitted, awaiting confirmation. AMEND_COMPLETED — amendment confirmed. AMEND_FAILED — amendment rejected. CANCEL_PENDING — cancel submitted, awaiting confirmation. CANCEL_COMPLETED — cancellation confirmed. CANCEL_FAILED — cancellation rejected. Empty string when no action is in progress. |
| actionMsg | String | Additional message associated with the current action, if any. |
| algoOrderId | String | Algo / strategy order ID on the venue, if the order is generated by an algorithmic or strategy order. Empty or null for normal orders. |
| platform | String | The client product the order was placed from. |
| channel | String | The protocol the order was submitted through. |
Example Request
GET /api/v1/trading/orders?sym=BINANCE_SPOT_ETH_USDT&page=1&pageSize=10
Example Response
{
"code": 200000,
"message": "Success",
"data": {
"page": 1,
"pageSize": 20,
"pageNum": 1,
"totalSize": 1,
"list": [
{
"portfolioId": "1704269773524000",
"portfolioName": null,
"orderId": "2171125266142788",
"clientOrderId": "2171125266142788",
"orderState": "OPEN",
"sym": "BINANCE_PERP_BTC_USDT",
"side": "SELL",
"exchangeOrderType": "LIMIT",
"exchangeType": "BINANCE",
"businessType": "PERP",
"orderQty": "0.002",
"quoteOrderQty": "0",
"limitPrice": "73330",
"timeInForce": "GTC",
"executedQty": "0",
"executedAmount": "0",
"executedAvgPrice": "0",
"reason": "",
"action": "",
"actionMsg": "",
"cancelType": "",
"amendType": "",
"createAt": "1779940601086",
"updateAt": "1779940601116",
"fee": "0",
"feeCoin": "",
"orderType": "DMA",
"reduceOnly": true,
"leverage": 5,
"lastExecutedQty": "0",
"lastExecutedPrice": "0",
"lastExecutedAmount": "0",
"borrowAmount": "0",
"borrowAsset": "",
"positionSide": "NONE",
"algoOrderId": null,
"rebate": "0",
"rebateCoin": "",
"tpTriggerPrice": "",
"tpTriggerType": "",
"tpPrice": "",
"slTriggerPrice": "",
"slTriggerType": "",
"slPrice": "",
"platform": "API",
"channel": "REST"
}
]
}
}
