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
| Setting | Default | What it does |
|---|---|---|
lockMinProfitPercent | 1 | Hedge when a guaranteed profit at least this large (after fees) is available. |
stopLossPercent | 30 | Hedge to cap loss when a position falls this far below entry. |
hedgeRatioPercent | 100 | Fraction of the position to hedge. 100 = fully hedge. |
minPositionUsd | 5 | Ignore positions with a cost basis below this. |
maxHedgeUsd | 500 | Max USDC for a single hedge. |
maxTotalExposureUsd | 5000 | Max USDC across all hedges. |
feeRatePercent | 1 | Fee rate used in the lock math. |
pollIntervalSeconds | 8 | Seconds 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.