https://api.lbkrs.com/gridtrading/replaceRequest body application/json
ID of the grid order to modify
Security ID (counter_id), for example ST/US/AAPL or ST/HK/700
Settlement currency
Grid trading rule. Use the spread fields (*_spread_*) or the percentage fields (*_percent_*) according to trigger_price_type.
Child attributes
Grid base price
Upper bound of the price range
Handling when the price leaves the range:
1- Do not place orders2- Close the position at the latest price
12
Lower bound of the price range
Handling when the price leaves the range:
1- Do not place orders2- Close the position at the latest price
12
Trigger condition type:
1- By spread2- By percentage
12
Rise spread that triggers a sell
Fall spread that triggers a buy
Rise percentage that triggers a sell
Fall percentage that triggers a buy
Pullback spread; pass it when pullback tracking is on
Rebound spread; pass it when rebound tracking is on
Pullback percentage; pass it when pullback tracking is on
Rebound percentage; pass it when rebound tracking is on
Sell side. How the order is placed after the grid triggers:
GMO- Market order at the market priceGLO- Limit order; priced at the market price whentrigger_*_depthis0, otherwise at the specified order book levelGTG- Limit order at the trigger price
GMOGLOGTG
Buy side. How the order is placed after the grid triggers:
GMO- Market order at the market priceGLO- Limit order; priced at the market price whentrigger_*_depthis0, otherwise at the specified order book levelGTG- Limit order at the trigger price
GMOGLOGTG
Sell order. Order book level: -1 to -5 are bid levels 1 to 5, and 1 to 5 are ask levels 1 to 5. Pass 0 when the order uses the market price or the trigger price
Buy order. Order book level: -1 to -5 are bid levels 1 to 5, and 1 to 5 are ask levels 1 to 5. Pass 0 when the order uses the market price or the trigger price
Sell quantity per trigger
Buy quantity per trigger
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
Expiry time as a Unix timestamp in seconds; required when time_in_force=6
Grid trading session, using the same values as force_only_rth when placing orders; pass it when the security supports pre-market and after-hours trading
Whether multiple-quantity orders are enabled
Whether the grid order allows short selling
Maximum position quantity; pass it when the position range is on
Minimum position quantity; pass it when the position range is on
Request identifier as a millisecond timestamp
Order entry identifier used to attribute the order source
Responses
HTTP 200The request succeeded. The response body contains the result of the “Modify Grid Trading Strategy” operation.codemessagedatadataobjectdata structureNo business fields
No nested fields