Place a conditonal order
Last updated
Last updated
POST /v2/algo-orders
API Key Permissions: Transactions Frequency limit value (NEW): 20 times/2 seconds Order strategy orders can only be placed through this node, and cannot be placed through spot/margin trading related interfaces. The maximum number of untriggered OPEN orders supported is 100.
accountId
integer
TRUE
Account ID
At present only support spot account id, margin account id, super-margin account. C2C margin account id is not supported at this point of time.
symbol
string
TRUE
Trading symbol
orderPrice
string
FALSE
Order price (invalid for market order)
orderSide
string
TRUE
Order side
buy,sell
orderSize
string
FALSE
Order size (invalid for market buy order)
orderValue
string
FALSE
Order value (only valid for market buy order)
timeInForce
string
FALSE
gtc for orderType=limit; ioc for orderType=market
Time in force
gtc (invalid for orderType=market), boc (invalid for orderType=market), ioc, fok (invalid for orderType=market)
orderType
string
TRUE
Order type
limit,market
clientOrderId
string
TRUE
Client order ID (max length 64-char)
stopPrice
string
TRUE
Stop price
trailingRate
string
FALSE
Trailing rate (only valid for trailing stop order)
[0.001-0.050]
code
integer
TRUE
Status code
message
string
FALSE
Error message (if any)
<data>
object
TRUE
clientOrderId
string
TRUE
Client order ID
</data>