# QuantOracle Risk Full Analysis

> QuantOracle Risk Full Analysis is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Computes a comprehensive suite of portfolio risk and performance metrics from a series of returns, including Sharpe, Sortino, Calmar, VaR, CVaR, max drawdown, Kelly criterion, Hurst exponent, CAGR, and win rate.

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/risk/full-analysis
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-afa9a8ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PFx--W4Xc9ENdwByAqdVu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-quantoracle-dev-afa9a8ae -d '<json body>'
```

Example prompt: Run a full risk analysis on my portfolio with these 15 daily returns: [0.012, -0.008, 0.005, -0.021, 0.003, 0.015, -0.002, 0.008, -0.011, 0.006, 0.009, -0.004, 0.007, -0.009, 0.011] — the portfolio value is $500,000 and the risk-free rate is 5%; I need Sharpe, Sortino, Calmar, VaR, CVaR, max drawdown, Kelly leverage, Hurst exponent, and CAGR all at once.

## When to prefer this

Use this endpoint when you need a single-call comprehensive risk and performance report covering all major quant finance metrics simultaneously, rather than calling separate endpoints for each metric. Prefer over individual metric endpoints when building dashboards, strategy evaluation pipelines, or automated reporting that requires Sharpe, VaR, Kelly, Hurst, and drawdown data together. Particularly well-suited for algorithmic trading strategy backtests where holistic risk-adjusted performance evaluation is needed.

## Known failure modes

- Insufficient data points in returns array may yield INSUFFICIENT_DATA for Hurst exponent interpretation
- Empty or malformed returns array returns a 400 validation error
- Risk-free rate out of expected range may produce anomalous ratio values
- Very short return series (fewer than ~10 periods) may produce unreliable statistical estimates
- Missing required fields (returns, risk_free_rate, portfolio_value) returns 422 or 400 error

## How this service works

QuantOracle: /v1/risk/full-analysis

## Output

Returns a rich JSON object containing: count of periods and computation time; risk metrics (Sharpe, Sortino, Calmar ratios; VaR 95, CVaR 95; max drawdown; current drawdown); Hurst exponent with interpretation; full and half Kelly leverage; annualized years; return metrics (volatility, CAGR, total return %, annualized return); and portfolio stats (win rate, start value, end value).

## Example request

```json
{
 "returns": [
  0.012,
  -0.008,
  0.005,
  -0.021,
  0.003,
  0.015,
  -0.002,
  0.008,
  -0.011,
  0.006,
  0.009,
  -0.004,
  0.007,
  -0.009,
  0.011
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "title": "FullAnalysisIn",
     "required": [
      "returns"
     ],
     "properties": {
      "returns": {
       "type": "array",
       "items": {
        "type": "number"
       },
       "title": "Returns",
       "maxItems": 5000,
       "minItems": 10,
       "description": "Daily returns series (max 5000)"
      },
      "equity_curve": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": "number"
         },
         "maxItems": 5000
        },
        {
         "type": "null"
        }
       ],
       "title": "Equity Curve",
       "description": "Equity curve (optional, derived from returns if omitted)"
      },
      "risk_free_rate": {
       "type": "number",
       "title": "Risk Free Rate",
       "default": 0.05,
       "description": "Annual risk-free rate"
      },
      "portfolio_value": {
       "type": "number",
       "title": "Portfolio Value",
       "default": 100000,
       "description": "Current portfolio value",
       "exclusiveMinimum": 0
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-afa9a8ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
