跳到主要内容

批量下单

POST

/az/spot/batch-order

限流规则​

30/s/apikey

请求参数​

参数类型是否必须默认值描述取值范围
clientBatchIdstringfalse客户端批次号,正则:^[a-zA-Z0-9_]{4,32}$
itemsarraytrue集合
item.symbolstringtrue交易对
item.clientOrderIdstringfalse客户端ID,正则:^[a-zA-Z0-9_]{4,32}$
item.sidestringtrue订单方向 BUY-买,SELL-卖
item.typestringtrue订单类型 LIMIT-限价,MARKET-市价
item.timeInForcestringtrue有效方式 GTC,IOC,FOK,GTX
item.bizTypestringtrue业务类型 SPOT-现货, PREDICTION-预测市场
item.pricenumberfalse价格。现价必填; 市价不填
item.quantitynumberfalse数量。现价必填;市价按数量下单时必填
item.quoteQtynumberfalse金额。现价不填;市价按金额下单时必填
item.outcomenumberfalse预测市场结局资产[1=YES;2=NO](bizType=PREDICTION 必填)
item.slippagenumberfalseRFQ 滑点。示例:0.01

Request

{
"clientBatchId": "51232",
"items": [
{
"symbol": "BTC_USDT",
"clientOrderId": "16559590087220001",
"side": "BUY",
"type": "LIMIT",
"timeInForce": "GTC",
"bizType": "SPOT",
"price": 40000,
"quantity": 2,
"quoteQty": 80000
}
]
}

Response

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"batchId": "123", // 批次号
"items": [ //订单集合
{
"index": "0", // 下标,从0开始
"clientOrderId": "123", // 客户端订单ID
"orderId": "123", // 订单ID
"rejected": false, // 是否拒单
"reason": "invalid price precision" // 拒单原因
}
]
}
}