The live trader protects capital through a layered set of automatic controls. Some are hard stops that permanently halt trading until a manual restart; others are soft cooldowns that resume automatically. Together they ensure the system does not continue trading into conditions where the signal quality or market environment makes further losses likely.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/0xW1re/solvedocs/llms.txt
Use this file to discover all available pages before exploring further.
Minimum balance reserve
halted = true and opens no further positions. This state persists for the current session — trading does not resume 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.
The reserve also factors into position sizing before the halt threshold is reached:
Daily drawdown limit
Phase-based position limits
The number of concurrent positions the trader may hold at any time is determined by its current phase:| Phase | Balance threshold | Max concurrent positions |
|---|---|---|
| 1 | 0.2 SOL+ | 1 |
| 2 | 1.0 SOL+ | 2 |
| 3 | 10.0 SOL+ | 5 |
Consecutive loss cooldown
Per-token cooldown
After closing any position on a token, that token enters a 30-minute cooldown. The trader will not re-enter the same token within this window, regardless of how strong the next signal appears. This prevents re-entry on tokens that have already pumped and dumped, where the signal system may still emit buy signals from wallets who are now stuck. The cooldown applies regardless of the reason for the close.Score threshold and dead probability gates
Before a strategy is selected, two probability checks run against the ML model’s output:- Score threshold: the calibrated buy probability must meet or exceed the strategy’s
score_threshold(80% for standard strategies, 90% for most genesis strategies) - Dead probability veto: the
dead_proboutput must be below the strategy’sdead_threshold— strategies that define a dead threshold will not trade if the model considers the token likely to go to zero
Anti-signal force exits
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 takes priority over all other exit logic, including take profit.
Anti-signals are generated when the adversarial detection layer identifies conditions that make continued holding dangerous: coordinated dumps, high bot concentration, creator rug history, or other risk triggers. Exiting a profitable position early is considered a small cost compared to holding through a coordinated exit.
Anti-signals do not themselves block new trades on other tokens. They are position-specific exits, not system-wide halts. A burst of anti-signals across many tokens simultaneously is worth monitoring as a leading indicator of broader market deterioration.
Simulation mode
The live trader can be run in simulation mode where every circuit breaker, sizing calculation, and strategy selection executes exactly as in live mode — but no transactions are submitted on-chain. All decisions, including halts and cooldowns, are logged in full. Simulation mode is the recommended way to validate a new model or strategy configuration before deploying capital. It exercises the full decision path, so the logged output is directly comparable to what live mode would produce.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. A natural external indicator of a halt or cooldown is the absence of new position-open events on the live feed while the signal stream continues to emit events normally.