Expand description
Options sleeve risk: drawdown halt from high-water mark.
Structs§
Functions§
- compute_
sleeve_ equity - credit_
spread_ pnl_ usd - Credit-spread realized PnL in USD.
- drawdown_
to_ json - realized_
pnl_ usd - record_
live_ realized_ pnl - Record live (non-sim) realized PnL when a position closes.
- sleeve_
base_ usd - Sleeve base for HWM: explicit
drawdown_sleeve_usd, else sim budget, else portfolio risk cap. - unrealized_
pnl_ from_ monitors - Unrealized $ from monitor snapshots (
profit_pct× credit × 100 × contracts). - update_
drawdown - Update HWM / drawdown halt. Clears only prior drawdown-sourced halt reasons.