Batch Place Orders
HTTP request Batch orders
- POST /api/v2/trade/batch-orders
Weight(IP): 5, Weight(UID): 10
Request parameters
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| symbol | String | Yes | Trading pairs. For details, view:/products | 
| orderList | List | Yes | Order list | 
- orderList parameter
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| side | String | Yes | Order direction buy: Buy sell: Sell | 
| orderType | String | Yes | Order type limit: Limit order market: Market order | 
| force | String | Yes | Order execution type (It is invalid when orderType is market) normal: Normal limit order, good till cancelled postOnly: Post-only order (maker only) fok: Fill or kill ioc: Immediate or cancel | 
| price | String | No | Limit price (required when orderType is 'limit') | 
| quantity | String | Yes | Order amount | 
| clientOrderId | String | Yes | Customizable order ID | 
Request example
curl -X POST "https://api-spot.weex.com/api/v2/trade/batch-orders" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*******" \
   -H "ACCESS-PASSPHRASE:*****" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "locale:zh-CN" \
   -H "Content-Type: application/json" \
   -d '{"symbol": "BTCUSDT_SPBL",
	"orderList": [{
		"side": "sell",
		"orderType": "limit",
		"force": "normal",
		"price": "100000",
		"quantity": "1",
		"clientOrderId": "202504041144444401743738284072"
	}]
}'
Response parameters
| Field Name | Type | Field Description | 
|---|---|---|
| resultList | array | array | 
| > orderId | long | Order ID | 
| > clientOrderId | String | Customizable order ID | 
Response example
{
  "code": "00000",
  "msg": "success",
  "requestTime": 1743738287975,
  "data": {
    "resultList": [{
      "orderId": 602882076026339770,
      "clientOrderId": "202504041144444401743738284072"
    }]
  }
}