Circuit breakers are hard stops that halt trading when conditions indicate the system or market is in a state where continued trading is likely to destroy capital. They are not soft warnings — they unconditionally block new position opens, and some permanently halt the trader until a manually initiated restart.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alphaleaks60-maker/docs2/llms.txt
Use this file to discover all available pages before exploring further.
Active circuit breakers
- Minimum balance
- Daily drawdown
- Consecutive losses
halted = true and opens no further positions for the remainder of the session. This is a permanent halt within the current process — it requires a manual restart.The 0.08 SOL threshold is intentionally set above the Jito tip cost of 0.0002 SOL per trade round-trip. This ensures there is always enough SOL to execute a sell transaction even if the trader has somehow entered a position it shouldn’t have.Position sizing accounts for the minimum balance reserve directly:
size = min(size, balance - 0.08). This means positions shrink naturally as the balance approaches the floor, rather than halting abruptly at the threshold.Anti-signal force exits
Anti-signals are not technically circuit breakers — they don’t block new trades — but they function similarly in terms of protecting capital. When ananti_signal arrives for a token with an open position, the position is force-exited immediately regardless of current price, profit, or hold time.
This can mean exiting a profitable position early if adversarial conditions are detected after entry. The cost of leaving profit on the table is considered far smaller than the risk of holding through a coordinated dump.
Anti-signals are generated by the
AntiSignalEmitter service and published on the same trade:signals Redis channel as buy signals. They carry a severity field (count of risk triggers that fired, minimum 2) and a human-readable reasons array.Interaction with position sizing
The circuit breaker minimum balance is factored directly into position sizing:min_position = 0.05 SOL) causes trades to be skipped entirely, well before the hard halt triggers.
State persistence
| State | Persistence | Reset |
|---|---|---|
halted (minimum balance) | In-memory, session only | Manual process restart |
| Daily drawdown halt | In-memory, session only | Midnight UTC (daily reset timer) |
| Consecutive loss cooldown | In-memory, session only | Automatic after 15 minutes |
Monitoring circuit breaker status
The most direct way to see whether a circuit breaker has fired is to check the logs — the trader emits a warning with the specific reason every time a circuit breaker blocks a trade. For a database view of recent performance, use these queries:Monitoring
Full reference for PostgreSQL tables, pipeline stats, and key log patterns.
Strategies
How position sizing interacts with phase gating and the minimum balance reserve.