Current Open 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

NameTypeMandatoryDescription
symStringNTrading pair unique identifier ,for example BINANCE_SPOT_BTC_USDT
exchangeStringNExchange type(BINANCE,OKX)
businessTypeStringNBusiness type(For example SPOT,PERP)
beginStringNStart of the query window, in milliseconds since Unix epoch.
endStringNEnd of the query window, in milliseconds since Unix epoch.
pageStringNCurrent page (Default 1)
pageSizeStringNPage size(Default 1000, max 1000)

Response

FieldTypeRemark
portfolioIdStringPortfolio ID
portfolioNameStringPortfolio Name
orderIdStringOrder ID
clientOrderIdStringCustomer-defined order ID
orderStateStringOrder 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.
symStringTrading pair unique identifier ,for example BINANCE_SPOT_BTC_USDT
sideStringSide(BUY,SELL)
exchangeOrderTypeStringExchange order type(LIMIT, MARKET)
exchangeTypeStringExchange type(BINANCE,OKX)
orderTypeStringOrder type(DMA, SYSTEM_LIQ, SYSTEM_REDUCE, REPLACE) ; For detailed specifications regarding orderType, please refer to this link:https://apiconnex.readme.io/reference/order
businessTypeStringBusiness type(For example SPOT)
orderQtyStringOrder quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin
quoteOrderQtyStringOrder quote quantity, only use for Spot Market Buy order
limitPriceStringOrder price
timeInForceStringTimeinforce (default GTC,enums:GTC,IOC,FOK,GTX)
reasonStringFailure reason message, if the order is rejected or cancelled by the system.
executedQtyStringExecuted quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin
executedAvgPriceStringAverage execution price of the filled quantity.
executedAmountStringTotal executed quote amount.
reduceOnlyStringReduce position orders only, "true" or "false"
lastExecutedQtyStringQuantity of the most recent fill, in the same unit as executedQty.
lastExecutedPriceStringPrice of the most recent fill.
lastExecutedAmountStringQuote amount of the most recent fill.
feeStringCumulative trading fee for this order. Positive = fee charged (taker). "0" when the order earned a maker rebate instead (see rebate field).
feeCoinStringCurrency of the trading fee. Empty string if no fee was charged.
rebateStringCumulative 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.
rebateCoinStringCurrency of the rebate. Empty string if no rebate was received.
leverageIntegerLeverage applied to this order or position. When businessType is SPOT/MARGIN, the endpoint returns NULL.
borrowAmountStringBorrowed amount for margin trading (if applicable).
borrowAssetStringAsset symbol of the borrowed currency.
positionSideStringPosition 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.
tpTriggerPriceStringTake-profit trigger price.
tpTriggerTypeStringTake-profit trigger price type:
LAST_PRICE, MARK_PRICE
The default is LAST_PRICE
tpPriceStringTake-profit order price;
If the price is 0, take-profit will be executed at the market price.
slTriggerPriceStringStop-loss trigger price
slTriggerTypeStringStop-loss trigger price type:
LAST_PRICE, MARK_PRICE
The default is LAST_PRICE
slPriceStringStop-loss order price;
If the price is 0, stop-loss will be executed at the market price.
createAtStringOrder creation time, in milliseconds since Unix epoch.
updateAtStringLast update time of the order, in milliseconds since Unix epoch.
actionStringCurrent 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.
actionMsgStringAdditional message associated with the current action, if any.
algoOrderIdStringAlgo / strategy order ID on the venue, if the order is generated by an algorithmic or strategy order. Empty or null for normal orders.
platformStringThe client product the order was placed from.
channelStringThe 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"
        }
      ]
    }
  }
Query Params
string
string
string
string
string
int32
Defaults to 1000
int32
Defaults to 1000
Response

Language
LoadingLoading…
Response
Choose an example:
application/json