HTTP · Spot trading

Place Batch Orders

Places up to 50 spot orders in a single request.

POSThttps://api.koinsayang.com/api/v2/spot/trade/batch-orders

Request parameters

NameTypeRequiredDescription
symbol
body
stringOptionalTrading pair, e.g. BTCUSDT
userId
body
stringOptionalUser
channelApiCode
body
stringOptionalX-CHANNEL-API-CODE header value, default null
orderList
body
arrayYesOrders to place, up to 50
side
body
stringYesSide: buy / sell
orderType
body
stringYesOrder type: limit / market
force
body
stringYesExecution 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
stringOptionalLimit price; precision and tick size come from the trading-pair endpoint
size
body
stringYesOrder 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
stringOptionalCustom order ID
stpMode
body
stringOptionalSelf-trade prevention: CO, CN, CB

Request example

application/json
{
"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

FieldTypeDescription
successListarrayOrders placed
orderIdstringOrder ID
clientOidstringClient order ID
failureListarrayOrders rejected
orderIdstringOrder ID
clientOidstringClient order ID
errorMsgstringError message
errorCodestringError code

Response example

200 · application/json
{
"code": "00000",
"msg": "success",
"requestTime": 1766047171207,
"data": {
"successList": [
{
"orderId": "1385467742622101504",
"clientOid": "osl-global-eth-usdtXMRX3ea35dac900007"
}
],
"failureList": []
}
}