https://api.lbkrs.com/v1/attached_order/replaceRequest body application/json
Attached order type:
0- No attached order; if the original order has attached orders, also passcancel_all_attached=trueto cancel them all1- Take-profit order2- Stop-loss order3- Bracket order (both take-profit and stop-loss)
0123
Take-profit trigger price
ID of the existing take-profit order; pass it when modifying that order
Order price after the take-profit order is activated; pass it when the activated order type is a limit type
Stop-loss trigger price
ID of the existing stop-loss order; pass it when modifying that order
Order price after the stop-loss order is activated; pass it when the activated order type is a limit type
Order type after the attached order is activated
Trading session after the attached order is activated:
1- Pre-market and after-hours not allowed2- Pre-market and after-hours allowed
Time in force:
0- Day1- Good till canceled (GTC)3- Immediate or cancel (IOC)5- Fill or kill (FOK)6- Good till date (GTD); an expiry time is also required
01356
Expiry time as a Unix timestamp in seconds; required when time_in_force=6
Whether to cancel all attached orders of the main order
Main order ID; required when you modify only the attached orders
Total quantity of the main order; pass it when you modify only the attached orders
Current market price, including pre-market and after-hours; pass it when you modify only the attached orders
Responses
HTTP 200The request succeeded. The response body contains the result of the “Modify Attached Orders” operation.codemessagedatadataobjectdata structureNo business fields
No nested fields