Submit batch order
POST: /v1/spot/batch-order
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
clientBatchId | string | false | Client batch number. Pattern: ^[a-zA-Z0-9_]{4,32}$ | ||
items | array | true | array | ||
item.symbol | string | true | |||
item.clientOrderId | string | false | Pattern: ^[a-zA-Z0-9_]{4,32}$ | ||
item.side | enum | true | BUY,SELL | ||
item.type | enum | true | order type:LIMIT,MARKET | ||
item.timeInForce | enum | true | effective way:GTC, FOK, IOC, GTX | ||
item.bizType | enum | true | SPOT, LEVER | ||
item.price | number | false | price. Required if it is the LIMIT price; blank if it is the MARKET price | ||
item.quantity | number | false | quantity. Required if it is the LIMIT price or the order is placed at the market price by quantity | ||
item.quoteQty | number | false | amount. Required if it is the LIMIT price or the order is the market price when placing an order by amount | ||
item.media | string | false | |||
item.mediaChannel | string | false | |||
item.nftId | string | false |
Limit Flow Rules
30/s/apikey
Java
public String batchOrderPost(){
}
- Request
- Response
{
"clientBatchId": "51232",
"items": [
{
"symbol": "BTC_USDT",
"clientOrderId": "16559590087220001",
"side": "BUY",
"type": "LIMIT",
"timeInForce": "GTC",
"bizType": "SPOT",
"price": 40000,
"quantity": 2,
"quoteQty": 80000
}
]
}
{
"code": 200,
"msg": "string",
"msgInfo": [
{}
],
"data": {
"batchId": "123",
"items": [
{
"index": "0", // start with 0
"clientOrderId": "123",
"orderId": "123",
"reject": false,
"reason": "invalid price precision"
}
]
}
}