Modules
Top-level namespace for the Risk Engine application.
OTP application callback module.
Client API for interacting with a portfolio process.
GenServer callbacks for portfolio state management.
DynamicSupervisor that starts and supervises RiskEngine.Portfolio
processes on demand — one per portfolio id.
Owns the PubSub topics, alert thresholds, and broadcasting logic for portfolio risk events.
Pure risk math — no process, no state, no side effects.
Generates a steady stream of random trades so the risk engine has data to process without a real market feed.
Single entry point for feeding trades into the risk engine.