Skip to main content

Bot Place Order

Bot-specific place order interface, does not freeze assets or write to DB, only sends to matching engine.

🔒 Requires IP whitelist authorization.

API Information​

  • Method: POST
  • Path: /api/v1/bot/orders

Request Parameters (Body)​

ParameterTypeRequiredDescription
symbolstringYesTrading pair
sidestringYesDirection: buy / sell
typestringYesType: limit / market_buy / market_sell
pricestringConditionalPrice (required for limit orders)
qtystringConditionalQuantity
quote_qtystringConditionalAmount (required for market buy)
client_order_idstringNoClient order ID
resp_typestringNoResponse type: ACK (default) / RESULT / FULL
need_cachebooleanNoWhether to cache bot order (default false)

Request Example​

{
"symbol": "BTC_USDT",
"side": "buy",
"type": "limit",
"price": "30000",
"qty": "0.1",
"client_order_id": "bot-order-001",
"need_cache": true
}

Response Fields​

Response fields same as "Place Order" interface.

FieldTypeDescription
codeintegerStatus code
messagestringResponse message
data.order_idstringOrder ID
data.client_order_idstringClient order ID
data.statusintegerStatus
data.filled_qtystringFilled quantity
data.filled_quotestringFilled amount
data.tradesarrayTrade details

Response Example​

{
"code": 0,
"message": "success",
"data": {
"order_id": "1234567890123456789",
"client_order_id": "bot-order-001",
"status": 1,
"filled_qty": "0.05",
"filled_quote": "1500",
"trades": [
{
"maker_order_id": "1234567890123",
"match_id": "9876543210",
"price": "30000",
"qty": "0.05",
"quote_qty": "1500",
"trade_index": 0
}
]
}
}