get
https://api.connex.trade/api/v1/trading/order
Retrieve order details for all order status.
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 |
|---|---|---|---|
| orderId | String | N | Unique identifier of the order assigned by the system. |
| clientOrderId | String | N | Customer-defined order ID , consists of letters(a-z) and numbers(0-9) |
Tip:Either orderId or clientOrderId must be sent.query all order state (NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL)
Response
| Field | Type | Remark |
|---|---|---|
| portfolioId | String | Unique identifier for the portfolio. |
| portfolioName | String | Name of the portfolio (if applicable). |
| orderId | String | Unique identifier for the order. |
| 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 |
| sym | String | Trading pair unique identifier ,example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT |
| side | String | Order side: BUY or SELL. |
| exchangeOrderType | String | Order type defined by the exchange (e.g., LIMIT, MARKET).) |
| exchangeType | String | The exchange name (e.g., BINANCE, OKX).) |
| businessType | String | Type of market (e.g., SPOT, MARGIN, PERP). |
| 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 |
| 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 | Total quantity in quote currency (if applicable). |
| limitPrice | String | Order limit price. |
| timeInForce | String | Timeinforce (default GTC, enums:GTC,IOC,FOK,GTX) |
| 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 price of executed fills. |
| executedAmount | String | Total executed quote amount. |
| lastExecutedQty | String | Quantity of the most recent execution. |
| lastExecutedPrice | String | Price of the most recent execution. |
| lastExecutedAmount | String | Value of the most recent execution. |
| 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. |
| reduceOnly | Boolean | Whether the order is reduce-only: true or false. |
| leverage | Integer | Leverage used for the order. When businessType is SPOT/MARGIN, the endpoint returns NULL. |
| borrowAmount | String | Amount borrowed for margin/leverage. |
| borrowAsset | String | Asset borrowed for the order. |
| positionSide | String | Position side (e.g., LONG, SHORT, NONE). |
| algoOrderId | String | ID of the parent algorithmic order (if applicable). |
| 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. |
| reason | String | Failure reason message, if the order is rejected or cancelled by the system. |
| 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. |
| cancelType | String | Reason the order was cancelled. Possible values: USER, EXPIRE, REDUCE_ONLY, LIQUIDATING, SYSTEM, SYM_DELIST. Empty string if the order has not been cancelled. |
| amendType | String | Reason the order was amended. Possible values: USER, REDUCE_ONLY. Empty string if the order has not been amended. |
| createAt | String | Order creation timestamp (millisecond). |
| updateAt | String | Last update timestamp (millisecond). |
| 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/order?orderId=2106591138643265
Example Response
{
"code": 200000,
"message": "Success",
"data": {
"portfolioId": "1732260294043000",
"portfolioName": "Main Portfolio",
"orderId": "2106591138643265",
"clientOrderId": "myorder001",
"orderState": "FILLED",
"sym": "BINANCE_SPOT_ETH_USDT",
"side": "SELL",
"exchangeOrderType": "LIMIT",
"exchangeType": "BINANCE",
"orderType": "DMA",
"businessType": "SPOT",
"orderQty": "0.5",
"quoteOrderQty": "",
"limitPrice": "3200",
"timeInForce": "GTC",
"executedQty": "0.5",
"executedAmount": "1600",
"executedAvgPrice": "3200",
"lastExecutedQty": "0.5",
"lastExecutedPrice": "3200",
"lastExecutedAmount": "1600",
"fee": "1.6",
"feeCoin": "USDT",
"rebate": "0",
"rebateCoin": "",
"reduceOnly": false,
"leverage": 1,
"borrowAmount": "0",
"borrowAsset": "",
"positionSide": "NONE",
"algoOrderId": "",
"tpTriggerPrice": "",
"tpTriggerType": "LAST_PRICE",
"tpPrice": "0",
"slTriggerPrice": "",
"slTriggerType": "LAST_PRICE",
"slPrice": "0",
"reason": "",
"action": "",
"actionMsg": "",
"cancelType": "",
"amendType": "",
"createAt": "1744466400000",
"updateAt": "1744466410000",
"platform": "API",
"channel": "REST"
}
}
