Margin

Query Margin Account's all OCO (USER_DATA)

Retrieves all OCO for a specific margin account based on provided optional parameters

Weight(IP): 200

get/sapi/v1/margin/allOrderList

Query parameters

isIsolated'TRUE' | 'FALSE'
  • TRUE - For isolated margin
  • FALSE - Default, not for isolated margin
symbolstring

Mandatory for isolated margin, not supported for cross margin

fromIdstring

If supplied, neither startTime or endTime can be provided

startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

limitinteger

Default Value: 500; Max Value: 1000

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

List of Margin OCO orders

orderListIdinteger required
contingencyTypestring required
listStatusTypestring required
listOrderStatusstring required
listClientOrderIdstring required
transactionTimeinteger required
symbolstring required
isIsolatedboolean required

Example response

[
  {
    "orderListId": 29,
    "contingencyType": "OCO",
    "listStatusType": "EXEC_STARTED",
    "listOrderStatus": "EXECUTING",
    "listClientOrderId": "amEEAXryFzFwYF1FeRpUoZ",
    "transactionTime": 1565245913483,
    "symbol": "LTCBTC"
  }
]

Changes

Changed in 1 of the 26 revisions of this API.516

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

      request-parameter-type-changed

    • for the query request parameter limit, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • 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 startTime, 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/contingencyType 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/listClientOrderId became required for the status 200

      response-property-became-required

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

      response-property-became-required

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

      response-property-became-required

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

      response-property-became-required

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

      response-property-became-required

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

      response-property-became-required

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

      response-property-became-required

    • the response property items/orders/items/symbol 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/transactionTime 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