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

Place Orders Batch (TRADE)

  • POST /capi/v3/batchOrders

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
batchOrdersArray<PlaceOrder>YesUp to 5 orders per request. Each element uses the same fields as Place Order (TRADE).











Request example
PowerShellCode
curl -X POST "https://api-contract.weex.com/capi/v3/batchOrders" \ -H "ACCESS-KEY:*******" \ -H "ACCESS-SIGN:*******" \ -H "ACCESS-PASSPHRASE:*****" \ -H "ACCESS-TIMESTAMP:1659076670000" \ -H "Content-Type: application/json" \ -d '{ "batchOrders": [ { "symbol": "BTCUSDT", "side": "BUY", "positionSide": "LONG", "type": "LIMIT", "timeInForce": "GTC", "quantity": "0.01", "price": "69000", "newClientOrderId": "batch-1", "reduceOnly": false } ] }'
Response parameters

A JSON array where each element matches the response schema of Place Order (TRADE).

Response example
JSONCode
[ { "orderId": "702345678901234567", "clientOrderId": "batch-1", "success": true, "errorCode": "", "errorMessage": "" } ]