Create Algo Order
Limit: 10 requests per 1 second
POST /v1/algo/order
Place maker/taker order that requires an additional trigger for order execution such as stop orders.
STOP
type order bahavior: an order to buy or sell at the market/limit price once the asset has traded at or through a specified price (the “stop price”). If the asset reaches the stop price, the order becomes a market order and is filled at the next available market price.
To place Positional TP/SL
order, the input fields is 2 layer and includes an array of the objects named childOrder. The take-profit or stop-loss order should be the objects in the array. For the sub-order in childOrder, please input CLOSE_POSITION
as type, and TAKE_PROFIT
or STOP_LOSS
in algoType field.
Sample request can be found here
Note: This endpoint requires trading scope in Orderly Key.
Headers
Use this parameter to control the timeout threshold for placing order, unit in miliseconds
Body
STOP
/TP_SL
/POSITIONAL_TP_SL
LIMIT
/ MARKET
, required if algo_type
= STOP
For MARKET
/ASK
/BID
order, if order_amount is given, it is not required. Not required if type is POSITIONAL_TP_SL
.
SELL
/BUY
, required if STOP
type
36 length, accepts hyphen but cannot be the first character, default: null
Optional for TP_SL
and POSTIONAL_TP_SL
Only MARK_PRICE
is available for now.
Default false