Adjust futures grid (add investment / modify range)
pionex_bot_adjust_futures_grid_paramsAdjust futures grid bot parameters: add investment, modify grid price range or row count, or set a trigger investment for an existing order.
Instructions
Adjust futures grid (add investment / modify range)
Add investment, modify grid range, or set trigger investment for a futures grid order. Weight: 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | No | New grid level count (required when type=adjust_params) | |
| top | No | New grid upper price (required when type=adjust_params) | |
| type | Yes | Adjustment type: `invest_in` - Add investment, `adjust_params` - Modify grid range, `invest_in_trigger` - Trigger investment | |
| bottom | No | New grid lower price (required when type=adjust_params) | |
| slippage | No | Slippage for add investment / modify range | |
| buOrderId | Yes | Bot order ID | |
| condition | No | Trigger price (when type=invest_in_trigger) | |
| openPrice | Yes | Current price | |
| investCoin | No | Investment currency: `USDT` or quote currency (default) | |
| isReinvest | No | When type=adjust_params: whether to fold current floating profit into the investment base (default false). Interacts with other fields — see the decision table and precedence rules on this schema before using: - Ignored when keepInvestment=true. - Implicitly forced true when quoteInvestment>0. - When left false without keepInvestment, requires current PnL > 0, else the request is rejected with `PROFIT_LESS_THAN_ZERO`. For the common "keep investment unchanged" intent, prefer keepInvestment=true over isReinvest=false. | |
| extraMargin | Yes | true: reserve extra margin, false: no extra margin | |
| isRecommend | No | Whether using recommended parameters (when type=adjust_params) | |
| investmentFrom | No | Funding source: `USER` (default) or `LOCK_ACTIVITY` | |
| keepInvestment | No | "Keep investment fixed" intent (recommended for pure range/row edits). When `true` and type=adjust_params: only modify grid range/row without resetting the investment amount. Overrides isReinvest (isReinvest is ignored), skips the PnL check, but still validates the price range. Do not combine with quoteInvestment>0 or adjustParamsSence=reinvest. When `false` (default): investment base is recalculated after modification and the PnL check applies. | |
| quoteInvestment | No | When type=invest_in: additional investment amount (must be > 0). When type=adjust_params: amount of new funds to add to the investment. NOTE: any value > 0 is implicitly treated as reinvest (forces isReinvest=true internally), so do not send quoteInvestment>0 together with keepInvestment=true. Leave 0/unset for the "keep investment" or "reinvest profit only" intents. | |
| adjustParamsSence | No | "Reinvest profit only" intent. Set to `reinvest` (only valid when type=adjust_params) to keep params/funds unchanged and fold current floating profit into the investment. When set to `reinvest`, you MUST also send isReinvest=true and quoteInvestment=0 / extraMarginAmount=0, otherwise the request is rejected. Leave empty for the other intents. | |
| extraMarginAmount | No | Extra margin amount to add (when type=adjust_params) | |
| conditionDirection | No | Trigger direction: "1" (above current) or "-1" (below current) |