Skip to main content

Query Margin Account's OCO (USER_DATA)

API Description

Retrieves a specific OCO based on provided optional parameters

HTTP Request

GET /papi/v1/margin/orderList

Weight

5

Parameters:

NameTypeMandatoryDescription
orderListIdLONGNOEither orderListId or origClientOrderId must be provided
origClientOrderIdSTRINGNOEither orderListId or origClientOrderId must be provided
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES

Response:

{
"orderListId": 27,
"contingencyType": "OCO",
"listStatusType": "EXEC_STARTED",
"listOrderStatus": "EXECUTING",
"listClientOrderId": "h2USkA5YQpaXHPIrkd96xE",
"transactionTime": 1565245656253,
"symbol": "LTCBTC",
"orders": [
{
"symbol": "LTCBTC",
"orderId": 4,
"clientOrderId": "qD1gy3kc3Gx0rihm9Y3xwS"
},
{
"symbol": "LTCBTC",
"orderId": 5,
"clientOrderId": "ARzZ9I00CPM8i3NhmU9Ega"
}
]
}