PolyEdge
Browse documentation

Hedge Bot

The Hedge Bot doesn't open new directional bets. It watches the positions your other bots already hold (the Copy Bot especially) and buys the opposite side to either lock in a guaranteed profit or cap a loss.

  • Automatic profit-lock on winning positions
  • Stop-loss hedging on losing positions
  • Buys the opposite side to remove directional risk
  • Configurable lock threshold and stop level
  • Per-hedge and total exposure caps
  • Live watchlist of managed positions

How it works

For each open position the bot continuously checks the opposite outcome's price:

  • Profit-lock — if your entry plus the opposite side's current ask sums to less than $1, buying the opposite side guarantees a profit at resolution regardless of outcome. The bot locks it in once that guaranteed profit clears your threshold.
  • Stop-loss — if a position falls far enough below your entry, the bot hedges to cap further loss.

Because it only ever buys the side opposite to something you already hold, it never adds new directional exposure — it converts an open bet into a locked or bounded outcome.

Settings

SettingDefaultWhat it does
lockMinProfitPercent1Hedge when a guaranteed profit at least this large (after fees) is available.
stopLossPercent30Hedge to cap loss when a position falls this far below entry.
hedgeRatioPercent100Fraction of the position to hedge. 100 = fully hedge.
minPositionUsd5Ignore positions with a cost basis below this.
maxHedgeUsd500Max USDC for a single hedge.
maxTotalExposureUsd5000Max USDC across all hedges.
feeRatePercent1Fee rate used in the lock math.
pollIntervalSeconds8Seconds between checks.
It needs positions to manage
The Hedge Bot only acts on open positions you already hold. Run it alongside the Copy, Arbitrage, or Market Maker bots — on its own with no open positions it will simply watch and report nothing to hedge.