Skip to content

bullpen hyperliquid pair risk

Last updated: July 13, 2026

Update or clear post-open Pear pair TP/SL thresholds

Usage

bullpen hyperliquid pair risk [OPTIONS] <POSITION_ID>

Live Help

Update or clear post-open Pear pair TP/SL thresholds

Usage: bullpen hyperliquid pair risk [OPTIONS] <POSITION_ID>

Arguments:
  <POSITION_ID>
          Pear position ID

Options:
      --no-multi-wallet-warning
          Suppress the table-mode warning shown when multiple EVM wallet accounts exist

      --output <OUTPUT>
          Output format for command results

          [possible values: table, json]

      --take-profit <TAKE_PROFIT>
          New take-profit threshold value

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

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

      --take-profit-type <TAKE_PROFIT_TYPE>
          Take-profit threshold type

          [default: percentage]
          [possible values: percentage, dollar, position-value, price, price-ratio, weighted-ratio]

      --clear-take-profit
          Clear the current take-profit threshold

      --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.

      --stop-loss <STOP_LOSS>
          New stop-loss threshold value

      --stop-loss-type <STOP_LOSS_TYPE>
          Stop-loss threshold type

          [default: percentage]
          [possible values: percentage, dollar, position-value, price, price-ratio, weighted-ratio]

      --clear-stop-loss
          Clear the current stop-loss threshold

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

      --trailing-stop
          Make the stop-loss update a trailing stop

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

          [env: BULLPEN_NON_INTERACTIVE=]

      --trailing-delta <TRAILING_DELTA>
          Trailing-stop delta value. Required when --trailing-stop is set

      --trailing-activation <TRAILING_ACTIVATION>
          Optional trailing-stop activation value

      --preview
          Show the Pear risk update body without submitting

  -y, --yes
          Required confirmation flag for live Pear risk update

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

EXAMPLES:
  # Preview updating both TP and SL for an open Pear position
  bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --take-profit 12 --stop-loss 5 --preview

  # Preview clearing the current stop-loss for an open Pear position
  bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --clear-stop-loss --preview

  # Preview clearing the current take-profit for an open Pear position
  bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --clear-take-profit --preview

  # Submit a confirmed trailing stop-loss update
  bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --stop-loss 95000 --stop-loss-type price --trailing-stop --trailing-delta 250 --yes

PEAR PREREQUISITES:
  Use `bullpen status --output json` and `bullpen doctor auth --output json`
  to confirm the active Bullpen-managed EVM wallet. Run `bullpen login` only
  when diagnostics report login is required. Enable `hyperliquid` for reads/status and
  `hyperliquid_trading` before live pair risk updates. Run
  `bullpen hyperliquid pair status --output json` or
  `bullpen hyperliquid pair setup --preview --output json` to verify setup first.

SAFETY:
  Preview never signs or submits. Live risk updates call Pear
  PUT /positions/{positionId}/riskParameters, require completed Pear setup, and
  require --yes. If Pear returns a retryable error after submission starts,
  inspect pair positions and orders before retrying. Setup/deposit blockers
  return guidance before signing or submitting. Pear service-side auth rejection
  after a live write is no-replay.

Example Commands

bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --take-profit 12 --stop-loss 5 --preview
bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --clear-stop-loss --preview
bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --clear-take-profit --preview
bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --stop-loss 95000 --stop-loss-type price --trailing-stop --trailing-delta 250 --yes
bullpen hyperliquid pair risk 550e8400-e29b-41d4-a716-446655440003 --take-profit 12 --stop-loss 5 --preview --output json

JSON Output

Contract: JSON Output Contract.

This command supports --output json, but this generated reference page intentionally does not include a synthetic success schema or example.

Use the live command in your target environment to inspect command-specific success fields. Error output follows the shared JSON output contract linked above.

Schema version: 1 when a command emits schema_version; otherwise treat the current command shape as contract version 1.

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.