Margin

Query Margin Account's Open Orders (USER_DATA)

  • If the symbol is not sent, orders for all symbols will be returned in an array.
  • When all symbols are returned, the number of requests counted against the rate limiter is equal to the number of symbols currently trading on the exchange
  • If isIsolated ="TRUE", symbol must be sent.

Weight(IP): 10

get/sapi/v1/margin/openOrders

Query parameters

symbolstring
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

isIsolated'TRUE' | 'FALSE'
  • TRUE - For isolated margin
  • FALSE - Default, not for isolated margin
recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Margin open orders list

clientOrderIdstring required
cummulativeQuoteQtystring required
executedQtystring required
icebergQtystring required
isWorkingboolean required
orderIdinteger required
origQtystring required
pricestring required
sidestring required
statusstring required
stopPricestring required
symbolstring required
isIsolatedboolean required
timeinteger required
timeInForcestring required
typestring required
updateTimeinteger required
selfTradePreventionModestring required

Example response

[
  {
    "clientOrderId": "ZwfQzuDIGpceVhKW5DvCmO",
    "cummulativeQuoteQty": "0.00000000",
    "executedQty": "0.00000000",
    "icebergQty": "0.00000000",
    "orderId": 213205622,
    "origQty": "0.30000000",
    "price": "0.00493630",
    "side": "SELL",
    "status": "NEW",
    "stopPrice": "0.00000000",
    "symbol": "BNBBTC",
    "time": 1562133008725,
    "timeInForce": "GTC",
    "type": "LIMIT",
    "updateTime": 1562133008725,
    "selfTradePreventionMode": "NONE"
  }
]

Changes

Changed in 2 of the 26 revisions of this API.222

    • added the required property items/selfTradePreventionMode to the response with the 200 status

      response-required-property-added

  • a484ce871a72221See the full diff
    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property items/clientOrderId became required for the status 200

      response-property-became-required

    • the response property items/cummulativeQuoteQty became required for the status 200

      response-property-became-required

    • the response property items/executedQty became required for the status 200

      response-property-became-required

    • the response property items/icebergQty became required for the status 200

      response-property-became-required

    • the response property items/isIsolated became required for the status 200

      response-property-became-required

    • the response property items/isWorking became required for the status 200

      response-property-became-required

    • the response property items/orderId became required for the status 200

      response-property-became-required

    • the response property items/origQty became required for the status 200

      response-property-became-required

    • the response property items/price became required for the status 200

      response-property-became-required

    • the response property items/side became required for the status 200

      response-property-became-required

    • the response property items/status became required for the status 200

      response-property-became-required

    • the response property items/stopPrice became required for the status 200

      response-property-became-required

    • the response property items/symbol became required for the status 200

      response-property-became-required

    • the response property items/time became required for the status 200

      response-property-became-required

    • the response property items/timeInForce became required for the status 200

      response-property-became-required

    • the response property items/type became required for the status 200

      response-property-became-required

    • the response property items/updateTime became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required