HTTP · Spot trading
Place Batch Orders
Places up to 50 spot orders in a single request.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol body | string | Optional | Trading pair, e.g. BTCUSDT |
| userId body | string | Optional | User |
| channelApiCode body | string | Optional | X-CHANNEL-API-CODE header value, default null |
| orderList body | array | Yes | Orders to place, up to 50 |
| side body | string | Yes | Side: buy / sell |
| orderType body | string | Yes | Order type: limit / market |
| force body | string | Yes | Execution strategy (not applicable when orderType is market). gtc: normal limit order, valid until cancelled; post_only: maker-only order; fok: fill the whole order or cancel it immediately; ioc: fill immediately and cancel the remainder |
| price body | string | Optional | Limit price; precision and tick size come from the trading-pair endpoint |
| size body | string | Yes | Order size. For limit and market orders it is the base-coin quantity; for market buy orders it is the quote-coin amount. The number of decimals comes from the trading-pair endpoint. |
| clientOid body | string | Optional | Custom order ID |
| stpMode body | string | Optional | Self-trade prevention: CO, CN, CB |
Request example
{ "orderList": [ { "clientOid": "osl-global-eth-usdtXMRX3ea35dac900007", "force": "post_only", "orderType": "limit", "price": "100000.29", "side": "sell", "size": "0.1" } ], "symbol": "BTCUSD", "userId": "1009178902657"}Response fields
| Field | Type | Description |
|---|---|---|
| successList | array | Orders placed |
| orderId | string | Order ID |
| clientOid | string | Client order ID |
| failureList | array | Orders rejected |
| orderId | string | Order ID |
| clientOid | string | Client order ID |
| errorMsg | string | Error message |
| errorCode | string | Error code |
Response example
{ "code": "00000", "msg": "success", "requestTime": 1766047171207, "data": { "successList": [ { "orderId": "1385467742622101504", "clientOid": "osl-global-eth-usdtXMRX3ea35dac900007" } ], "failureList": [] }}