Packages

A real-time portfolio risk engine built on OTP: ingests trades, tracks per-portfolio cash exposure, volatility, and drawdown, and broadcasts risk snapshots and threshold alerts over Phoenix.PubSub.

Current section

Files

Jump to
risk_engine lib risk_engine.ex
Raw

lib/risk_engine.ex

defmodule RiskEngine do
@moduledoc """
Top-level namespace for the Risk Engine application.
`RiskEngine` is a real-time portfolio risk monitoring system. Trades are
ingested through `RiskEngine.TradeIngestion`, applied to per-portfolio
`RiskEngine.Portfolio` processes, and the resulting exposure, volatility,
and drawdown metrics are broadcast over `Phoenix.PubSub` by
`RiskEngine.RiskBroadcaster` so that dashboards and downstream consumers
can react to risk changes as they happen.
See `RiskEngine.Application` for the supervision tree.
"""
@doc """
Hello world.
## Examples
iex> RiskEngine.hello()
:world
"""
def hello do
:world
end
end