RiskModels Long/Short Portfolio Exposure
riskmodels_portfolio_exposureCalculate portfolio beta-dollars by sector and ETF hedge trades that neutralize short or 100+ name books, with systematic/residual dollar risk, coverage, and warnings.
Instructions
Use when a book has short positions or more than 100 names, or when you want its beta-dollars and the ETF trades that neutralise it. Not for long-only books of up to 100 names given as weights (use riskmodels_analyze_portfolio). Returns, from POST /portfolio/exposure, beta-dollars by sector, the ETF trades that neutralise the book at L1, L2 and L3, systematic and residual dollar risk at hedge_level (default lstar: each name at its own recommended depth), coverage (positions not modelled, with reasons) and warnings. Positions are netted by security and not rescaled. End-of-day data, refreshed after each US market close. Price: $0.25 per call up to 25 modelled names, $1.00 above.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Past model date, 2011-12-07 or later; before 2013-01-01 lstar uses L3 (default latest), format YYYY-MM-DD, e.g. 2024-12-31 | |
| positions | Yes | Signed book of 1-1000 positions, e.g. [{"ticker":"AAPL","value":100000},{"ticker":"TSLA","value":-50000}] | |
| hedge_level | No | lstar: each name at its own recommended depth; l1/l2/l3: one depth for every name, e.g. l3 (default lstar) | |
| lookback_days | No | Trading days in the ETF covariance window, integer 60-756, e.g. 126 (default 252) |