Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs
WEEX

Batch Place Orders (TRADE)

  • POST /api/v3/order/batch

Request Weight

5 on 10s order rate limit(X-ORDER-COUNT-10S); 5 on 1min order rate limit(X-ORDER-COUNT-1M); 0 on IP rate limit(X-USED-WEIGHT-1M);

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
PowerShellCode
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
JSONCode
{ "orderList": [ { "symbol": "BTCUSDT", "orderId": 702345678901234700, "clientOrderId": "batch-1", "transactTime": 1764506000456 }, { "symbol": "BTCUSDT", "clientOrderId": "batch-2", "errorCode": "INSUFFICIENT_BALANCE", "errorMsg": "insufficient balance" } ] }