https://api.lbkrs.com/gridtrading/submitRequest 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
Grid trading rule. An upward trigger sells and a downward trigger buys
Child attributes
Base price
Upper bound of the price range
Lower bound of the price range
Action when the price breaks above the range:
1- Do not place orders2- Close the position at the latest price
12
Action when the price breaks below the range. Values are the same as upper_limit_event
12
Trigger condition type:
1- By price spread; usetrigger_spread_*,pullback_spread, andrebound_spread2- By percentage; usetrigger_percent_*,pullback_percent, andrebound_percent
12
By spread: price rise that triggers a sell
By spread: price fall that triggers a buy
By percentage: price rise that triggers a sell
By percentage: price fall that triggers a buy
Pullback tracking spread (pass it when pullback tracking is on)
Rebound tracking spread (pass it when rebound tracking is on)
Pullback tracking percentage (pass it when pullback tracking is on)
Rebound tracking percentage (pass it when rebound tracking is on)
Order method for the sell triggered by a rise. Omit it and pass trigger_sell_depth when ordering at an order book level:
GMO- Market price (market order)GLO- Market price (limit order)GTG- Trigger price (limit order)
GMOGLOGTG
Order method for the buy triggered by a fall. Values are the same as grid_order_type_up. Omit it and pass trigger_buy_depth when ordering at an order book level
GMOGLOGTG
Order book level used for the sell order: 1 to 5 for ask 1 to ask 5, and -1 to -5 for bid 1 to bid 5. Pass 0 when grid_order_type_up is used
Order book level used for the buy order. Values follow trigger_sell_depth. Pass 0 when grid_order_type_down is used
Sell quantity for each upward trigger
Buy quantity for each downward trigger
Whether multiple-quantity ordering is enabled
Whether the grid order may short sell
Maximum position quantity (pass it when the position range is on)
Minimum base position quantity (pass it when the position range is on)
Time in force of the grid strategy, using the same values as order time in force. When it is 6, expire_time is also required
01356
Expiry time of the grid strategy as a Unix timestamp in seconds
Grid 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
Client request identifier: the millisecond timestamp at submission
Responses
HTTP 200The request succeeded. The response body contains the result of the “Submit Grid Trading Strategy” operation.codemessagedatadataobjectdata structureGrid order ID