Skip to main content
Ultra Feature. Requires an Ultra subscription. Get started at api.mathematicalcompany.com
Monitor your portfolio in real time with graduated drawdown levels, automated risk reduction, hedge recommendations, and Cornish-Fisher VaR/CVaR.

Full Code

Pipeline Mode

Run sentinel monitoring as part of a live strategy with graduated drawdown response:

How It Works

  1. sentinel_report() computes a risk snapshot:
  • Cornish-Fisher VaR/CVaR (adjusts for skew and kurtosis)
  • Current drawdown level and classification
  • Position concentration risk
  • Correlation alerts between positions
  1. suggest_hedges() recommends trades to reduce portfolio delta
  2. sentinel() pipeline function takes graduated action:
  • Alert (-5%) - log warning, no action
  • Reduce (-10%) - cut position sizes by 50%
  • Pause (-20%) - stop submitting new quotes
  • Exit (-30%) - close all positions

Cornish-Fisher Risk Metrics

You can also compute VaR/CVaR directly from Rust:

Run It

See Sentinel for the full reference.