Cancel futures grid order
pionex_bot_cancel_futures_grid_orderCancel a futures grid bot order to close positions and stop the bot. Specify bot order ID and optional close settings like slippage or sell mode.
Instructions
Cancel futures grid order
Close and cancel a futures grid bot order. Weight: 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buOrderId | No | Bot order ID | |
| closeNote | No | Close note | |
| immediate | No | Force-cancel an order that is stuck in the `close_position` state because its limit take-profit / stop-loss order has triggered but not yet filled. This is NOT a generic "cancel faster" flag. - `false` (default): normal cancellation. Use this for orders in any regular state (e.g. `running`). It runs the full close flow: update status, dispatch the close action, and settle. - `true`: special recovery path ONLY valid when the order is in the `close_position` state with an unfilled limit TP/SL order. It sends the close action directly with a market price. If the order is in any other state, the request is rejected with `Forbidden: invalid status`. Do not set `true` as a default "force close" option — for normal close-outs always use `false`. | |
| closeSlippage | No | Close position slippage (e.g. "0.01" = 1%) | |
| closeSellModel | No | Close sell mode: `TO_QUOTE` - Close position only (default), `TO_USDT` - Close position and sell quote to USDT |