API Reference

Sub Order Update

User data stream.

Response

Sub order data:

{
    "channel": "SUB_ORDER",
    "instId": "BINANCE_PERP_ETH_USDT",
    "data": {
        "portfolioId": "1730798094087000",
        "orderId": "1735613056910000",
        "algoOrderId": "674712518659",
        "clientOrderId": "2024123110441600",
        "exchangeType": "BINANCE",
        "businessType": "PERP",
        "sym": "BINANCE_PERP_ETH_USDT",
        "limitPrice": "3343.35923485",
        "orderQty": "0.01",
        "quoteOrderQty": "0",
        "side": "BUY",
        "orderType": "DMA",
        "exchangeOrderType": "MARKET",
        "timeInForce": "GTC",
        "executedQty": "0",
        "executedAmount": "0",
        "executedAvgPrice": "0",
        "lastExecutedQty": "0",
        "lastExecutedPrice": "0",
        "lastExecutedAmount": "0",
        "borrowAmount": "0",
        "borrowAsset": "",
        "fee": "",
        "orderState": "OPEN",
        "updateAt": "1735613056925",
        "createAt": "1735613056910",
        "reason": "",
        "reduceOnly": False,
        "leverage": "3"
    }
}
FieldTyperemark
channelStringChannel name:Orders
instIdStringTrading unique identifier, example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT
If you want to know other trading unique identifiers, please go to the introduction page.
dataObjectData
>portfolioIdStringPortfolio ID
>orderIdStringOrder ID
>clientOrderIdStringCustomer defined order ID
>exchangeTypeStringExchange type(BINANCE, OKX)
>businessTypeStringBusiness type(SPOT, PERP)
>symStringTrading unique identifier, example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT
If you want to know other trading unique identifiers, please go to the introduction page.
>limitPriceStringOrder price
>orderQtyStringOrder quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin
Note: The trading unit on OKX is measured in the number of contracts, while the trading unit on Binance is measured in the number of coins.
>quoteOrderQtyStringOrder quote quantity, applicable only for spot market buy orders.
>sideStringSide(BUY,SELL)
>exchangeOrderTypeStringExchange order type(LIMIT, MARKET)
>timeInForceStringDefault GTC, enums:GTC,IOC,FOK,GTX
>executedQtyStringTransaction quantity
Note: The trading unit on OKX is measured in the number of contracts, while the trading unit on Binance is measured in the number of coins.
>executedAmountStringTransaction amount
>executedAvgPriceStringAverage transaction price
>lastExecutedQtyStringLast transaction quantity
>lastExecutedPriceStringLast transaction price
>lastExecutedAmountStringLast transaction amount
>feeStringExecuted transaction fee
>orderStateStringOrder state(NEW, OPEN, CANCELLED, FILLED, PARTIALLY_FILLED, REJECT, FAIL)
>updateAtStringUpdate time
>createAtStringCreate time
>reasonStringFail reason
>borrowAmountStringBorrow amount
>borrowAssetStringBorrow asset