https://api.lbkrs.com/v2/stock_contract/submitRequest body application/json
Security ID (counter_id), such as ST/US/AAPL or ST/HK/700
Order side:
1- Buy2- Sell
12
Order type code. It must be a key of channel_infos.order_type_config in Get Order Configuration:
LO- Limit orderMO- Market orderELO- Enhanced limit orderALO- At-auction limit orderAO- At-auction orderODD- Odd-lot orderSLO- Special limit orderLIT- Limit if touchedMIT- Market if touchedTSL- Trailing stop limitTS- Trailing stop marketMOC- Market on close
For a trailing stop, set the trailing distance with tailing_percent (by percentage) or tailing_amount (by amount). A trailing stop limit order also takes limit_offset, the price offset of the order placed after the trigger. TSLPPCT and TSLPAMT are also accepted and appear as TSL on the order.
The configuration key GT means the security supports grid trading, which is not placed through this endpoint. Hong Kong stocks do not support LO; use ELO for Hong Kong limit orders.
Limit price in the trading currency. Omit it for market-type orders and trailing stop orders
Order quantity: shares for stocks, contracts for options, or combinations for multi-leg orders. It must match the lot size returned by Get Order Configuration
Order amount when ordering by amount, used for US fractional shares. It must not be lower than channel_infos.fractional_min_amount returned by Get Order Configuration
Settlement currency, such as USD or HKD. Use an item of channel_infos.settlement_currency returned by Get Order Configuration
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
Order expiry time as a Unix timestamp in seconds. Required when time_in_force is 6
Trading session. Use an item of support_sessions of the order type in Get Order Configuration:
1- Regular trading hours only2- Regular trading hours plus pre-market and after-hours3- Overnight session only4- Pre-market (option overnight scenario)
Omit it when the security does not support session selection.
Trigger price. Required for conditional orders such as SLO, LIT, and MIT
Latest market price when the conditional order is submitted. Compare it with trigger_price to determine trend
Trigger direction of a conditional order:
1- Triggered when the price rises to the trigger price (the trigger price is abovemarket_price)2- Triggered when the price falls to the trigger price
12
Trigger count of the conditional order
Trailing amount of a trailing stop order (pass it when trailing by amount)
Trailing percentage of a trailing stop order (pass it when trailing by percentage)
Limit offset of a trailing stop limit order: after triggering, the order is placed at the market price plus or minus this offset. Omit it when limit_depth_level is passed
Order book level (such as best bid or best ask) used to price a trailing stop limit order. When it is 0 or omitted, limit_offset is used
Monitoring price of a trailing stop order
IDs of the cards used by this order, at most one per category (commission-free card, cash card, platform fee deduction card). Cash cards cannot be used for sell orders. If the array is empty or omitted, no card is redeemed for this order
Whether a commission-free card may be used to offset commission
Whether a stock cash card may be used for deduction
Whether a platform fee deduction card may be used
Client request identifier: the millisecond timestamp at submission
Attached order (take-profit / stop-loss) parameters. An attached order belongs to the main order submitted in this request and is activated only after the main order is filled. Only order types listed in channel_infos.support_attached_order_types returned by Get Order Configuration support attached orders
Child attributes
Attached order type:
1- Take-profit order2- Stop-loss order3- Bracket order (both take-profit and stop-loss)
123
Take-profit trigger price. Required when attached_order_type is 1 or 3
Stop-loss trigger price. Required when attached_order_type is 2 or 3
Order type after the attached order is activated, such as LIT (limit if touched) or MIT (market if touched)
Limit price of the take-profit order after activation. Pass it when activate_order_type is LIT
Limit price of the stop-loss order after activation. Pass it when activate_order_type is LIT
Trading session after activation:
1- Regular trading hours only2- Regular trading hours plus pre-market and after-hours
12
Time in force of the attached order:
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
01356
Expiry time of the attached order as a Unix timestamp in seconds. Required when time_in_force is 6
Option contract information (optional)
Child attributes
Option direction: C for call, P for put
CP
Security ID of the underlying stock
Expiry date in YYYYMMDD format
Strike price
Responses
HTTP 200The request succeeded. The response body contains the result of the “Submit Option Order” operation.codemessagedatadataobjectdata structureOrder submission result
ID of the new order, which you can use to query the order details
Trading reminder text. When it is not empty, the Broker App should show it to the Client after the order is submitted