批量下单
- POST /capi/v2/order/batchOrders
权重(IP): 5, 权重(UID): 10
请求参数
| 参数名 | 类型 | 是否必填 | 说明 | 
|---|---|---|---|
| symbol | String | 是 | 交易对 | 
| orderDataList | List | 是 | 参考【合约下单】接口,且最多只能批量处理20笔订单 | 
请求示例
curl -X POST "https://api-contract.weex.com/capi/v2/order/placeOrder" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*" \
   -H "ACCESS-PASSPHRASE:*" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "locale:zh-CN" \
   -H "Content-Type: application/json" \
   -d '{"symbol": "cmt_bchusdt","orderDataList": [{
      "client_oid": "11111122222222","size": "1","type": "1","order_type": "0",
      "match_price": "0","price": "100"}]}'
返回参数
| 参数名 | 类型 | 说明 | 
|---|---|---|
| result | boolean | 成交结果 | 
| client_oid | string | 客户端请求标识 | 
| order_id | string | 成交订单Id | 
返回示例
{
	"order_info": [{
		"order_id": "596476148997685805",
		"client_oid": "order12346",
		"result": true,
		"error_code": "",
		"error_message": ""
	}],
	"result": true
}