Files
foxhunt/crates/risk
jgrusewski cc4e0c5a2d refactor: remove trading_engine dep from ml and risk crates
Re-export HardwareTimestamp through data crate instead of ml/risk
depending directly on trading_engine. Reduces coupling between
the ML pipeline and the trading engine.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 23:19:38 +01:00
..

risk

Enterprise risk management for HFT.

Key Types

  • RiskEngine — central risk evaluation and enforcement
  • AtomicKillSwitch — atomic trading halt with Redis coordination
  • KellySizer — Kelly criterion position sizing
  • StressTester — extreme market scenario simulation
  • ComplianceValidator — SOX, MiFID II regulatory checks
  • DrawdownMonitor — peak-to-trough equity tracking
  • CircuitBreaker — threshold-based trading pauses
  • CorrelationMonitor — cross-asset correlation tracking

Value at Risk

Four VaR methods plus Expected Shortfall (CVaR): historical simulation, Monte Carlo, parametric (variance-covariance).

Config Presets

  • development_config() — relaxed limits for local testing
  • production_config() — 5ms safety check timeout, strict position limits