https://api.lbkrs.com/v1/orders/submit_tpslRequest body application/json
Security ID (counter_id), such as ST/US/AAPL or ST/HK/700
Settlement currency, such as USD or HKD. Use an item of channel_infos.settlement_currency returned by Get Order Configuration
Closing side:
1- Buy (short position)2- Sell (long position)
12
Order quantity of the take-profit and stop-loss orders
Time in force. The value must be in support_time_in_forces of the order type in Get Order Configuration:
0- Day (DAY)1- Good till canceled (GTC)3- Immediate or cancel (IOC)5- Fill or kill (FOK)6- Good till date (GTD);expire_timeis also required
If omitted, the order is treated as a day order.
01356
Expiry time as a Unix timestamp in seconds. Required when time_in_force is 6
Trading session (pass it when the security supports pre-market and after-hours trading):
1- Regular trading hours only2- Regular trading hours plus pre-market and after-hours
12
Take-profit order type:
LIT- Limit if touched; the matching*_submit_priceis also requiredMIT- Market if touched
LITMIT
Take-profit trigger price. Required when take-profit is set
Limit price after the take-profit order triggers. Required when take_profit_order_type is LIT
Stop-loss order type:
LIT- Limit if touched; the matching*_submit_priceis also requiredMIT- Market if touched
LITMIT
Stop-loss trigger price. Required when stop-loss is set
Limit price after the stop-loss order triggers. Required when stop_loss_order_type is LIT
Responses
HTTP 200The request succeeded. The response body contains the result of the “Submit Position Take-Profit and Stop-Loss Orders” operation.codemessagedatadataobjectdata structureGroup ID that links the take-profit and stop-loss orders placed in this request in the order list