Skip to content

bullpen solana cancel-all-orders

Last updated: October 7, 2026

Cancel all active Jupiter Trigger limit orders

Usage

bullpen solana cancel-all-orders [OPTIONS]

Live Help

Cancel all active Jupiter Trigger limit orders

Usage: bullpen solana cancel-all-orders [OPTIONS]

Options:
      --mint <MINT>
          Cancel only active orders involving this SPL token mint

      --output <OUTPUT>
          Output format for command results

          [possible values: table, json]

      --env <ENV>
          Target environment to connect to (overrides config.toml)

          [env: BULLPEN_ENV=]
          [possible values: staging, production]

      --yes
          Skip confirmation prompt

      --config <CONFIG>
          Path to a custom config.toml file (overrides $BULLPEN_CONFIG and the default location).

          Explicit --config and BULLPEN_CONFIG paths fail closed: if the file is missing, the CLI exits validation instead of silently loading defaults. Credentials still resolve via BULLPEN_HOME, so set BULLPEN_HOME too when isolating a session.

      --preview
          Show matching order keys without submitting a cancel (signs only an in-memory auth challenge to list orders — Jupiter Trigger v2 requires this even for reads)

      --read-only
          Enable read-only mode: blocks all mutating commands

      --non-interactive
          Suppress interactive prompts; does NOT imply --yes for money-moving commands

          [env: BULLPEN_NON_INTERACTIVE=]

  -h, --help
          Print help (see a summary with '-h')

EXAMPLES:
  # Review active Trigger orders before canceling
  bullpen solana orders --status active

  # Preview canceling active Trigger orders for one mint
  bullpen solana cancel-all-orders --mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 --preview

  # Export the filtered cancel-all preview as JSON
  bullpen solana cancel-all-orders --mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 --preview --output json

Example Commands

Live: Run the matching preview first. Submit only when it matches the intended target, size, price guards, and account scope.

bullpen solana orders --status active
bullpen solana cancel-all-orders --mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 --preview
bullpen solana cancel-all-orders --mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 --preview --output json

JSON Output

Contract: JSON Output Contract.

Preview (--preview --output json)

Preview output is a single JSON document emitted only when --preview --output json is passed. Live submit output uses the corresponding Solana Trigger mutation-report schema instead.

Schema version: 2 for Solana limit-order JSON output (ticket 1961 migrated Jupiter Trigger v1 to v2, renaming order to order_id and removing batches).

Top-level Keys

key type nullable notes
action string no cancel_all_limit_orders for previews
maker string no Bullpen Solana wallet used as maker
mint string yes Optional mint filter
orders array no Active order ids matched before signing
cancelled array no Live success: one entry per cancelled order (order, tx_signature, receipt_status, landed); absent from preview
stopped_early_reason string yes Set when the batch stopped before finishing because an order's outcome could not be automatically reconciled; Jupiter Trigger v2 has no batch-cancel route, so this composes per-order initiate/sign/confirm calls

Example

Example output: This non-runnable command-and-response pair documents the JSON shape. Use the preview/live workflow in Example Commands when you intend to submit.

bullpen solana cancel-all-orders --mint DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 --preview --output json
{
  "action": "cancel_all_limit_orders",
  "maker": "7qRkWTrM4DLpmeSnB8xT8p8mpqLQ9JdYatYczS4u1G8e",
  "mint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "orders": [
    "7nE9GJoYHNmtaQvTQpota3KV2oz4pQ2dA6nvYK8EUJHV"
  ]
}

Stability

Patch releases may add nullable or optional fields. Minor releases may add required fields or increment schema_version. Major releases may remove or rename fields.

Solana Trigger Notes

  • --preview builds the cancel request without Turnkey signing or Jupiter cancel mutation endpoints.
  • Live cancel initiates a withdrawal with Jupiter Trigger v2, signs it once with the Bullpen Solana wallet, and confirms it through Jupiter's two-step cancel endpoints; the CLI never broadcasts the withdrawal itself.
  • cancel-all-orders has no upstream batch-cancel route: it composes per-order initiate/sign/confirm calls, reports each order's outcome, and stops before finishing the batch if an order's outcome cannot be automatically reconciled.
  • After a live cancel, run bullpen solana balance --refresh --output json before relying on returned funds. Plain balance can briefly show cached balances while Jupiter and Bullpen indexing catch up.
  • Cancel commands do not run JupiterShield and do not expose --skip-shield-check or --slippage-bps.