# Slot Exit

> Decide hold vs exit for an open LP slot (TP/SL/range-abandoned), close it swapping back to quote, and rotate the freed capital.

- Skill: `hummingbot/slot-exit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hummingbot/slot-exit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hummingbot/slot-exit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: hummingbot (https://skillmd.com/u/hummingbot)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hummingbot/slot-exit

---


# Slot Exit — TP/SL + rotation

## Exit triggers (evaluate every tick, per open slot)
Exit when ANY is true:
- **Take profit:** slot `net_pnl_pct ≥ take_profit_pct` (default 20).
- **Stop loss:** slot `net_pnl_pct ≤ −stop_loss_pct` (default 20).
- **Range abandoned:** OUT_OF_RANGE for a sustained period AND OHLCV trend continues away from the range (price won't come back → no fees, only IL/exposure).

Measure PnL in `quote_asset` terms (net of fees earned, IL, rent, tx). Use executor `net_pnl_pct` / `custom_info` when available; otherwise compute from current vs initial value.

## How to exit
`stop_executor(executor_id=<id>, keep_position=false)`
- `keep_position=false` removes on-chain liquidity, runs the close-out swap back to `quote_asset`, and refunds position rent.
- Confirm the executor reaches COMPLETE and rent is refunded (`position_rent_refunded > 0`).

## Rotate
- A freed slot is re-filled next tick from a fresh `pool_ranking`.
- Do NOT immediately re-enter the pool you just exited (esp. a stop-loss) unless it clearly re-ranks on top — avoid churn/fee bleed.
- Journal each exit: pool, reason (TP/SL/abandoned), realized PnL, fees earned, duration.

