Files
foxhunt/crates/risk
jgrusewski 46ebfa4396 fix(risk): remove flaky latency assertions from CI test paths
Remove sub-100μs timing assertions from test_hf_gate_check and the
fractional_diff tests — these are correctness tests, not benchmarks.
Timing assertions are unreliable under CI CPU contention (parallel
workspace test runs).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:18:12 +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