cURL
curl --request POST \ --url https://whitebit.com/api/v4/orders/conditional \ --header 'Content-Type: application/json' \ --header 'X-TXC-APIKEY: <api-key>' \ --data ' { "market": "BTC_USDT", "offset": 0, "limit": 100 } '
{ "limit": 100, "offset": 0, "total": 2, "records": [ { "id": 117703764513, "type": "oco", "stop_loss": { "orderId": 117703764514, "clientOrderId": "", "market": "BTC_USDT", "side": "buy", "type": "stop limit", "timestamp": 1594605801.49815, "dealMoney": "0", "dealStock": "0", "amount": "2.241379", "takerFee": "0.001", "makerFee": "0.001", "left": "2.241379", "dealFee": "0", "post_only": false, "mtime": 1662478154.941582, "price": "19928.79", "activation_price": "29928.79", "activation_condition": "gte", "activated": 0, "status": "FILLED", "stp": "no", "positionSide": "LONG" }, "take_profit": { "orderId": 117703764515, "clientOrderId": "", "market": "BTC_USDT", "side": "buy", "type": "limit", "timestamp": 1662478154.941582, "dealMoney": "0", "dealStock": "0", "amount": "0.635709", "takerFee": "0.001", "makerFee": "0.001", "left": "0.635709", "dealFee": "0", "post_only": false, "mtime": 1662478154.941582, "price": "9928.79", "status": "FILLED", "stp": "no", "positionSide": "LONG" } }, { "id": 29457221, "type": "oto", "stopLossPrice": "30000", "takeProfitPrice": "50000", "conditionalOrder": { "orderId": 3686033640, "clientOrderId": "customId11", "market": "BTC_USDT", "side": "buy", "type": "limit", "timestamp": 1594605801.49815, "dealMoney": "0", "dealStock": "0", "amount": "2.241379", "takerFee": "0.001", "makerFee": "0.001", "left": "2.241379", "dealFee": "0", "price": "40000", "status": "FILLED", "stp": "no", "positionSide": "LONG" } } ] }
The endpoint retrieves active conditional orders.
Rate limit: 12000 requests/10 sec.
API Key authentication for private endpoints.
Required headers:
"BTC_USDT"
0
100
"{{request}}"
"{{nonce}}"
Successful response - returns paginated conditional orders (OCO and OTO types)
Number of records per page
Number of records skipped
Total number of records
2
Array of conditional orders (can be OCO or OTO type)
OCO type conditional order
Show child attributes
Was this page helpful?