Skip to main content
Version: V3

Batch Place Orders (TRADE)

  • POST /api/v3/order/batch

Weight(IP): 10, Weight(UID): 50

Note: This V3 endpoint is currently unavailable. Batch spot order placement is not supported.

Request parameters

ParameterTypeRequired?Description
symbolStringYesTrading pair, e.g. BTCUSDT.
orderListArray<Object>YesUp to 10 order definitions.

Each element of orderList supports the following fields:

FieldTypeRequired?Description
sideStringYesBUY or SELL.
typeStringYesLIMIT or MARKET.
timeInForceStringConditionalRequired when type = LIMIT. Values: GTC, IOC, FOK.
quantityStringYesOrder quantity.
priceStringConditionalLimit price when type = LIMIT.
newClientOrderIdStringNoClient-defined order ID.

Request example

curl -X POST "https://api-spot.weex.com/api/v3/order/batch" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderList": [
{
"side": "BUY",
"type": "LIMIT",
"timeInForce": "GTC",
"quantity": "0.01",
"price": "68850",
"newClientOrderId": "batch-1"
},
{
"side": "SELL",
"type": "MARKET",
"quantity": "0.02",
"newClientOrderId": "batch-2"
}
]
}'

Response parameters

FieldTypeDescription
orderListArray<Object>Per-order result list.
→ symbolStringTrading pair.
→ orderIdLongCreated order ID (present when successful).
→ clientOrderIdStringClient-defined order ID.
→ transactTimeLongOrder acceptance time (ms).
→ errorCodeStringError code when the order failed.
→ errorMsgStringError message when the order failed.

Response example

{
"orderList": [
{
"symbol": "BTCUSDT",
"orderId": 702345678901234700,
"clientOrderId": "batch-1",
"transactTime": 1764506000456
},
{
"symbol": "BTCUSDT",
"clientOrderId": "batch-2",
"errorCode": "INSUFFICIENT_BALANCE",
"errorMsg": "insufficient balance"
}
]
}