1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Risk analytics: Value-at-Risk, Expected Shortfall and the
//! surrounding toolkit, one concern per file.
//!
//! - [`measures`]: VaR and ES — historical (empirical quantile / tail
//! mean), parametric normal, Cornish-Fisher higher-moment corrected,
//! and delta-normal multi-asset VaR with the exact Euler
//! component/marginal decomposition;
//! - [`portfolio_risk`]: scenario VaR/ES for an options book
//! ([`EquityPortfolio`](crate::equity::portfolio::EquityPortfolio)) —
//! **delta-gamma-vega-theta** from the aggregated Greeks and **full
//! revaluation** through the book's repricer, on shared spot/vol
//! scenarios so their difference isolates the Taylor error;
//! - [`volatility`]: realized and EWMA (RiskMetrics) estimators;
//! - [`performance`]: max drawdown, Sharpe and Sortino ratios;
//! - [`backtest`]: the Kupiec proportion-of-failures VaR backtest;
//! - [`stress`]: TOML-configured **stress MtM** — named shock scenarios
//! (relative/absolute, per-underlying) bumped into the market data and
//! fully revalued, reported per trade and aggregated per scenario;
//! - [`ladder`]: **risk ladders** — full revaluation on a grid of
//! relative spot moves (ladder delta/gamma) or parallel vol shifts
//! (ladder vega/volga) read off adjacent rungs: the non-local risk
//! view for barrier-heavy books.
//!
//! Conventions: confidence levels are one-sided (0.99), VaR/ES are
//! positive loss amounts, and every simulation is deterministic per
//! seed.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;