Rate limits
Place OTO group
Request parameters
The parameter shape breaks the pattern used by every other order method. The entry order is a nested object undertrigger_order, carrying the full parameter set of whichever placement method trigger_order_type names. The exit is described by two bare prices at the top level rather than by nested order objects.
The conditional_order_type value decides which exit prices are required.
Exit prices are relative to the entry. For a buy entry the take-profit sits above and the stop-loss below; for a sell entry the reverse. Both are checked against the price bands around the entry price, and a price outside those bands returns error
250.
Response
Theresult object carries type "oto", the group id, the echoed conditional_order_type, the two exit prices as take_profit_price and stop_loss_price, and the trigger_order as a full order object. See the order object reference.
Two constraints on the entry. The
rpi flag is not allowed inside trigger_order, and margin_market_oco is not a valid trigger_order_type — it works only as an exit.