compute_portfolio_tail_risk
[0.010000 USDC via x402] Computes exact-Decimal daily 95% and 99% Value at Risk (VaR), 95% Expected Shortfall (CVaR), annualized volatility, max drawdown, Sharpe, Sortino, Probabilistic/Deflated Sharpe confidence, and minimum-variance BTC short hedge USD notional from aligned DefiLlama daily price history.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compute_portfolio_tail_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | No | Portfolio weights (shorthand tickers BTC/ETH/SOL/LINK/UNI/AAVE/ARB/OP or 'coingecko:...' IDs). | |
| lookback_days | No | Historical daily lookback window in UTC days between 14 and 90 (default 60). | |
| portfolio_value_usd | No | Total portfolio notional in USD for dollar VaR/CVaR and hedge sizing (default '100000'). | |
| x402_payment_signature | No | Optional base64 x402 PAYMENT-SIGNATURE header token (0.010000 USDC on Base eip155:8453 or Polygon eip155:137). Omit to receive the live x402 quote. |