Skip to content

bullpen trade

Last updated: August 26, 2026

Simple prediction-market trade commands

Usage

bullpen trade [OPTIONS] <COMMAND>

Subcommands

Subcommand Description
buy Buy prediction-market shares
sell Sell prediction-market shares

Live Help

Simple prediction-market trade commands

Usage: bullpen trade [OPTIONS] <COMMAND>

Commands:
  buy   Buy prediction-market shares
  sell  Sell prediction-market shares
  help  Print this message or the help of the given subcommand(s)

Options:
      --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]

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

      --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:
  # Preview a $5 No buy without signing or submitting
  bullpen trade buy $ACTIVE_MARKET_SLUG No 5 --max-price 0.01 --preview --output json

  # Place the same buy after review
  bullpen trade buy $ACTIVE_MARKET_SLUG No 5 --max-price 0.01 --yes

  # Preview selling the maximum accepted No shares
  bullpen trade sell $ACTIVE_MARKET_SLUG No --max --min-price 0.001 --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.

# Illustrative: discover active markets, then substitute the slug you choose.
bullpen polymarket discover --sort volume --limit 5 --output json
ACTIVE_MARKET_SLUG="<active-market-slug>"
bullpen trade buy $ACTIVE_MARKET_SLUG No 5 --max-price 0.01 --preview --output json
bullpen trade buy $ACTIVE_MARKET_SLUG No 5 --max-price 0.01 --yes
bullpen trade sell $ACTIVE_MARKET_SLUG No --max --min-price 0.001 --preview --output json
bullpen trade --help