The AEGIS bridge is the final layer between SMK signal generation and real order placement. It wires theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/deskiziarecords/QUIMERIA-HYPERION/llms.txt
Use this file to discover all available pages before exploring further.
step() result through a CLM tokenizer, a SequenceStopLossManager, and (when installed) AegisExtensions for Kelly sizing and venue routing. All bridge dependencies are lazy-loaded — a missing stop_loss_manager.py or aegis_extensions.py degrades gracefully without crashing the server.
AEGIS bridge architecture
r['veto']['trade_allowed']. AEGIS checks this boolean before invoking any order logic. If it is False, the execution section of the step result will show action: "VETO".
POST /api/live/start
Start the Bitget REST polling live feed. The feed polls the Bitget spot candle endpoint every 5 seconds, bootstraps 100 bars of history to warm the pipeline, then processes each new closed candle throughstep() and broadcasts results to ws://localhost:8000/ws/live subscribers.
Request body
Bitget API key. Leave empty to use the
BITGET_API_KEY environment variable, or to access public endpoints only.Bitget spot symbol to poll, for example
"BTCUSDT" or "EURUSDT".Candle interval for the live feed:
"1m", "5m", "15m", "1H".Response
"ok" when the feed starts successfully.The symbol being polled.
The candle interval.
Example
POST /api/live/stop
Stop the Bitget polling live feed. Existing WebSocket connections to/ws/live are not closed but will receive no further bar messages.
Response
"stopped" when successfully halted, or "realtime not available" if the realtime module was not loaded.Example
GET /api/execution/status
Return AEGIS bridge availability and current configuration. Use this to verify whether the full execution chain is wired before starting live trading.Response
true if StopLossManager imported successfully from managers/stop_loss_manager.py.true if AegisExtensions imported successfully from utils/aegis_extensions.py.Whether the bridge is currently enabled (will process PROCEED bars).
Capital amount configured for Kelly position sizing.
Example
If
slm_available or aegis_available is false, the pipeline still runs and generates signals, but the r['execution'] section of each bar result will be minimal — no Kelly sizing, no venue allocation, and no stop-loss levels.GET /api/execution/stats
Return session statistics from theStopLossManager, including win/loss counts, average R:R ratios, and sequence pattern frequency.
Response
"ok" when the bridge is available, or "unavailable" with an error key when it is not.Session statistics from the StopLossManager.
Example
The veto flow: r[‘veto’][‘trade_allowed’]
Every bar processed bystep() produces a veto section. This is the canonical execution gate that AEGIS and the frontend both read.
trade_allowed flips to false and one or more reason codes are added:
| Reason code | Trigger |
|---|---|
MANDRA:DE<0 | Mandra Gate: negative information energy gain (ΔE < 0.02) |
TOPO:H1_FRACTURE | Persistent homology H₁ loop sum exceeds threshold |
FUSION:LAMBDA_VETO | Lambda fusion engine issued a hard veto |
L3:LIAR_STATE | Harmonic trap: FFT phase inversion > π/2 |
KL:REGIME_FRACTURE | KL divergence > 1.3× threshold |
CONF:INSUFFICIENT | Fusion confidence < 0.2 |
ACTION_CENTER:PENDING | Action Center awaiting human confirmation |