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 manual restart.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alphaleaks60-maker/solvedocs2/llms.txt
Use this file to discover all available pages before exploring further.
Active circuit breakers
Minimum balance halt
Minimum balance halt
halted = true. This state persists for the current session — no new positions are opened until the trader is manually restarted with a funded wallet.The threshold is deliberately set above the cost of executing a sell, ensuring there is always enough SOL to exit any open position cleanly. This is a permanent halt within the session: it does not auto-recover.Reset: restart the process with a funded wallet. The halted flag is in-memory only and clears on restart.Daily drawdown halt
Daily drawdown halt
Consecutive losses cooldown
Consecutive losses cooldown
cooldownUntil timestamp is in-memory only and clears on restart.Summary of circuit breaker conditions
| Circuit breaker | Trigger | Halt type | Reset |
|---|---|---|---|
| Minimum balance | Balance < 0.08 SOL | Permanent (session) | Manual restart |
| Daily drawdown | Total equity down ≥ 30% from day start | Until midnight UTC | Automatic at 00:00 UTC |
| Consecutive losses | 5 losses in a row | 15-minute cooldown | Automatic after 15 min |
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 some profit on the table is considered far smaller than the risk of holding through a coordinated dump.
Interaction with position sizing
The circuit breaker minimum balance (0.08 SOL) is factored directly into position sizing:State persistence
Thehalted flag and cooldownUntil timestamp are in-memory only — they reset on process restart. This is intentional: a restart is a deliberate human action that implicitly acknowledges the halt condition and provides an opportunity to assess what caused it.
| State | Storage | Reset mechanism |
|---|---|---|
halted (min balance) | In-memory | Process restart |
| Daily drawdown halt | In-memory | Midnight UTC timer |
cooldownUntil (consec. losses) | In-memory | 15-minute timer or restart |
Observing circuit breaker status
The trader logs a warning with the reason every time a circuit breaker blocks a trade. The/api/stats endpoint reflects the current portfolio state, and the live feed will go quiet on new position opens when halted.