Skip to main content

Batch Place Orders

Place multiple orders in a single request. Supports both single symbol and multiple symbols modes.

HTTP Request

POST /api/v1/spot/trade/batch-orders

Request Parameters

ParameterTypeRequiredDescription
symbolstringNoTrading pair symbol (required when batchMode is "single")
batchModestringNoBatch mode: "single" or "multiple" (default: "single")
orderListarrayYesArray of orders to place

Order List Item Parameters

ParameterTypeRequiredDescription
symbolstringNoTrading pair symbol (required when batchMode is "multiple")
sidestringYesOrder side: "buy" or "sell"
orderTypestringYesOrder type: "limit" or "market"
pricestringNoOrder price (required when orderType is "limit")
sizestringYesOrder size

Request Example

Single Symbol Mode

curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/batch-orders" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"batchMode": "single",
"orderList": [
{
"side": "buy",
"orderType": "limit",
"price": "90000.00",
"size": "0.001"
},
{
"side": "buy",
"orderType": "limit",
"price": "89000.00",
"size": "0.002"
}
]
}'

Multiple Symbols Mode

curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/batch-orders" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"batchMode": "multiple",
"orderList": [
{
"symbol": "BTCUSDT",
"side": "buy",
"orderType": "limit",
"price": "90000.00",
"size": "0.001"
},
{
"symbol": "ETHUSDT",
"side": "sell",
"orderType": "limit",
"price": "3500.00",
"size": "0.1"
}
]
}'

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectBatch order result
> successListarrayArray of successfully placed orders
>> orderIdstringOrder ID
> failureListarrayArray of failed orders
>> errorMsgstringError message
>> errorCodestringError code

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": {
"successList": [
{
"orderId": "123456789"
},
{
"orderId": "123456790"
}
],
"failureList": [
{
"errorMsg": "insufficient balance",
"errorCode": "40001"
}
]
}
}

Error Codes

CodeMessage
40001Parameter cannot be empty
40001Maximum 50 orders allowed
40001Symbol is required in single mode
40001Symbol is required in orderList for multiple mode
40001Missing required parameters (side, orderType, size)
40002Unauthorized
43000Invalid symbol format: symbol