Skip to Content

Batch Place Orders

Request URL

POST /ftapi/v1/batchOrders

Request Parameters

NameTypeDescription
symbolIdSTRINGTrading pair, e.g., BTC-USDT-M
sideENUMBuy/sell direction: See OrderSide
typeENUMOrder type, see OrderType
timeInForceENUMTime in force, see TimeInForce
quantityDECIMALOrder quantity For a reduce-only order, omitting the quantity means closing the entire position.
priceDECIMALOrder price
reduceOnlyBOOLEANReduce only: false = no, true = yes
postOnlyBOOLEANPost only (Post Only)
reverseOrderBOOLEANReverse Order false = no, true = yes
tpSlTake profit/stop loss
tpTriggerTypeENUMTake profit trigger type, see TriggerTypeEnum
tpPriceDECIMALTake profit price
tpExecutePriceDECIMALTake profit execution price
slTriggerTypeENUMStop loss trigger type, see TriggerTypeEnum
slPriceDECIMALStop loss price
slExecutePriceDECIMALStop loss execution price

Response Parameters

NameTypeDescription
codeSTRINGResponse Code
msgSTRINGResponse Message
successBOOLEANSuccess Flag
dataBOOLEANData payload

Request Example

[ { "symbolId": "BTC-USDT-M", "side": "BUY", "price": 106000, "quantity": 10, "type": "LIMIT", "timeInForce": "GTC", "postOnly": false, "tpSl": { "tpTriggerType": "NONE", "tpPrice": 0, "tpExecutePrice": 0, "slTriggerType": "NONE", "slPrice": 0, "slExecutePrice": 0 } }, { "symbolId": "BTC-USDT-M", "side": "BUY", "price": 106000, "quantity": 10, "type": "LIMIT", "timeInForce": "GTC", "postOnly": false, "tpSl": { "tpTriggerType": "NONE", "tpPrice": 0, "tpExecutePrice": 0, "slTriggerType": "NONE", "slPrice": 0, "slExecutePrice": 0 } } ]

Response Example

{ "code": "0", "data": true, "msg": "Request successful", "success": true }

Error Codes

Error CodeDescription
700000System error
700001Position does not exist
700004Invalid request parameters
700008Request timeout
700009Invalid parameter
700011Invalid price
700012Invalid order quantity
700013Adjust margin exceeds maximum
700016Position size in this direction has exceeded the maximum open limit; please adjust risk limit
700017Insufficient balance
700018Insufficient pending orders
700019Invalid leverage multiple
700022Insufficient closable quantity
700040Trigger price is too close to current price and may be triggered immediately
700041Trading not allowed for this contract
700042Please select take profit or stop loss
700043Take profit trigger price greater than average open price
700044Take profit trigger price less than average open price
700045Stop loss trigger price less than average open price
700046Stop loss trigger price greater than average open price
700047Trigger price is too close to open price and may be triggered immediately
700048Order status error
700052Exceeds maximum order count
700057Stop loss trigger price cannot be lower than estimated liquidation price
700058Stop loss trigger price cannot be higher than estimated liquidation price
700060Order quantity cannot be less than minimum order quantity
700061User banned from trading
700062User banned from opening positions
700068Take profit price must be greater than order price
700069Take profit price must be greater than current price
700070Stop loss price must be less than order price
700071Stop loss price must be less than current price
700072Take profit price must be less than order price
700073Take profit price must be less than current price
700074Stop loss price must be greater than order price
700075Stop loss price must be greater than current price
700076Take profit price must be greater than mark price
700077Take profit price must be less than mark price
700078Stop loss price must be greater than mark price
700079Stop loss price must be less than mark price
700080Stop loss price must be less than liquidation price
700081Stop loss price must be greater than liquidation price
700082Order quantity cannot be greater than maximum order quantity
700089Take profit order price must be greater than open price
700091Take profit order price must be less than open price
700093Stop loss order price must be less than open price
700095Stop loss order price must be greater than open price
700096Take profit order price must be greater than latest price
700097Take profit order price must be less than latest price
700098Stop loss order price must be less than latest price
700099Stop loss order price must be greater than latest price
700106Order failed, please try again later or contact customer service

Code Example

Last updated on: