Skip to content
Fourohtwo

antigravity-x402-gateway.onrender.com/v1/portfolio-tail-risk

Computes coherent empirical daily 95% and 99% Value at Risk (VaR), 95% Expected Shortfall (CVaR), simple and log daily returns, annualized volatility, max drawdown, Sharpe, Sortino, Probabilistic Sharpe confidence, and minimum-variance BTC short hedge USD notional from UTC-midnight-aligned DefiLlama daily price history.

BaseAnswering
POSThttps://antigravity-x402-gateway.onrender.com/v1/portfolio-tail-risk

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://antigravity-x402-gateway.onrender.com/v1/portfolio-tail-risk", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"assets":[{"coin":"BTC","weight":0.5},{"coin":"ETH","weight":0.3},{"coin":"SOL","weight":0.2}],"lookback_days":60,"portfolio_value_usd":"100000"}),
});
console.log(await res.json());

Example input

{
  "assets": [
    {
      "coin": "BTC",
      "weight": 0.5
    },
    {
      "coin": "ETH",
      "weight": 0.3
    },
    {
      "coin": "SOL",
      "weight": 0.2
    }
  ],
  "lookback_days": 60,
  "portfolio_value_usd": "100000"
}
antigravity-x402-gateway.onrender.com/v1/portfolio-tail-risk · x402 API | Fourohtwo