Skip to content

v8.2.0

Latest

Choose a tag to compare

@enarjord enarjord released this 29 Nov 17:13
d409dfe

Passivbot v8.2.0

Released 2026-11-29.

V8.2 is the final v8 feature release. The package version is 8.2.0 and the config
schema is v8.6.0. It introduces a shared Equity Hard Stop Loss (HSL) controller,
adds Lighter and Binance Portfolio Margin support, and expands live safeguards and
experimental GPU optimizer screening.

Incompatible changes despite the minor package version. Older configs with HSL
enabled require explicit conversion with passivbot tool migrate-hsl. Config loading
rejects we_excess_allowance_mode: "legacy_raw". Review both changes and re-backtest
before upgrading a live config. Release compatibility

Highlights

  • HSL redesign. Live, fake-live, backtests, and optimization use one Rust-owned
    equity-drawdown controller. Current RED authorizes panic closes, recovery cancels
    outstanding panic orders, and terminal RED starts cooldown. The redesign removes
    the old tiers, engine selection, and recovery-grace controls. CPU backtests reuse
    HSL reconstruction across unchanged windows, and detailed reports are opt-in.
    Equity Hard Stop Loss
  • Exchanges. Added Lighter USDC perpetuals with signer setup and paginated fill
    history, and opt-in Binance Portfolio Margin for debt-free USDT collateral and
    USDT-settled UM perpetuals. Hyperliquid prioritizes eligible reduce-only limits
    for positions without confirmed close coverage when the create batch is full.
    Bitget Classic hedge closes and pending-order or fill pagination on several venues
    also received fixes. Lighter ·
    Binance Portfolio Margin
  • Live safeguards. The process exits with status 1 after sustained create
    failures or a confirmed Hyperliquid API-wallet rejection. The sustained-failure
    stop requires at least five failed creates and a failed attempt at least one hour
    into the streak. Trading actions share a bounded position-to-fill settling gate.
    Running live
  • Backtesting and optimization. Experimental Apple Silicon and NVIDIA GPU
    screening supports EMA Anchor and Trailing Martingale, including compatible
    multi-coin suites and HSL. Scenario-based screening promotes candidates for
    full-suite evaluation. Exact Rust backtests populate accepted results and the
    Pareto store. V8.2 also adds adaptive entry cooldown, optional Forager unilateralness
    scoring, independent auto-unstuck EMA spans, and a configurable backtest limit-fill
    buffer. GPU backend ·
    Forager
  • Tools and data. Added migrate-hsl, clean-config, and the offline interactive
    pareto-plot tool. Native candle fetches resume missing spans, and cache handling is
    stronger at concurrent writes, resolution seams, and UTC day rollover. Backtests
    can use local data in offline mode and respond to Ctrl-C during native simulation.
    Tools
  • Security. Live exchange diagnostics redact more credential and request-payload
    formats. NumPy candle loading rejects pickle objects, archive extraction filters
    unsafe paths and links, and the monitor relay rejects foreign browser WebSocket origins.

Configuration And Compatibility

  • The literal config_version: "v8.2.0" denotes an older config schema. Keep the source
    schema stamp so the loader can apply the correct migration. Supported schemas
    v8.0.0 through v8.5.0 migrate on load subject to the exceptions below.
    Config Workflow
  • Explicit HSL migration covers effective policies in coin overrides, optimizer fixed
    overrides, and suite scenarios. Disabled legacy HSL loads with a warning. When
    migrating enabled HSL, choose the current restart policy explicitly, re-backtest
    the thresholds, and reevaluate saved HSL optimizer fitness.
    HSL migration rules
  • Excess allowance is always bounded by the side's total wallet exposure limit.
    Remove explicit "legacy_raw" selectors and review the reduced headroom. An
    explicit "bounded" selector is removed with a warning.
  • Entry cooldown settings now live under bot.<side>.entry_cooldown. Trailing
    Martingale entry and auto-unstuck have separate EMA spans. Review the normalized
    paths and effective values. Configuration
  • Use a fresh optimizer run if the checkpoint predates the current evaluation
    identity or GPU parameter layout. Active successive-halving checkpoints require a
    fresh run. Saved result configs can seed a new search with fresh evaluations.
  • New backtest, optimizer, and suite runs use a different output layout. Existing
    results are preserved, and a compatible optimizer resume retains its directory.

Upgrade Checklist

  1. Back up the original configs, including any file-backed overrides, and record the
    current revision and environment.
  2. Stop older backtests and optimizers before they share caches with v8.2.0.
    For Bitget, KuCoin, and Hyperliquid, check fill-history warnings and complete
    any requested cache refresh or repair before relying on reconstructed positions.
  3. Select the v8.2.0 tag, reinstall the package, and rebuild and verify the Rust
    extension. Installation
  4. Migrate enabled legacy HSL into a separate output and remove any legacy_raw
    selectors. Normalize and review configs and their effective overrides.
  5. Run representative backtests and offline preflight checks. Reevaluate old HSL
    fitness and seed fresh optimizer runs where required.
  6. Review supervisor restart delays and retry limits before the normal live rollout.
    The supplied live Docker Compose services retry a failed exit up to five times.

Known Limitations

  • The GPU backend is experimental. Each prepared scenario supports up to 64 coins,
    zero BTC collateral, and documented metrics and override paths. Use CPU optimization
    for trailing_grid_v7. GPU backend limits
  • HSL estimates a cooldown anchor when permitted evidence is incomplete and reports
    the estimate. Missing or ambiguous history can also leave a scope unavailable.
    Best-effort history
  • Binance Portfolio Margin supports debt-free USDT collateral and USDT-settled UM
    perpetuals only. Binance Portfolio Margin

Rollback

Stop v8.2.0 workers before sharing caches with the prior version. Restore the previous
checkout, Python environment, and matching Rust extension together. Use the original
pre-migration configs and checkpoints from that revision. Config schema v8.6.0
requires a runtime that supports it.

Moving To V9

Use v9's explicit passivbot tool migrate-config-v9 converter. It accepts the tagged
v8.0.0 and v8.1.0 schemas and the final v8.6.0 schema. For another v8 schema,
materialize the config with its original runtime first, then load and export a copy
from v8.2.0. Review the conversion report and backtest the result before using it.

The complete v8 changelog and earlier release notes are listed in the
release history.