π€Place a conditonal order
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.
Request Parameter
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]
Note: β’ The gap between orderPrice and stopPrice shouldn't exceed the price limit ratio. For example, a limit buy order's price couldn't be higher than 110% of market price, this limitation should be also applicable to orderPrice/stopPrice ratio. β’ User has to make sure the clientOrderId's uniqueness. While the conditional order being triggered, if the clientOrderId is duplicated with another order (within 24hour) coming from same user, the conditional order will fail triggering. β’ User has to make sure the corresponding account has sufficient fund for triggering this conditional order, otherwise it would cause conditional order triggering failure. β’ timeInForce enum values: gtc - good till cancelοΌboc - book or cancel (also called as post only, or book only), ioc - immediate or cancel, fok - fill or kill
Response Content
code
integer
TRUE
Status code
message
string
FALSE
Error message (if any)
<data>
object
TRUE
clientOrderId
string
TRUE
Client order ID
</data>
Last updated