{"uid":"cap_PFx--W4Xc9ENdwByAqdVu","slug":"api-quantoracle-dev-afa9a8ae","name":"QuantOracle Risk Full Analysis","description":"QuantOracle: /v1/risk/full-analysis","url":"https://api.quantoracle.dev/v1/risk/full-analysis","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":{"request":{"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]},"response":{"n":15,"ms":17.29,"risk":{"calmar":14.7146,"sharpe":1.9042,"var_95":-0.021,"cvar_95":-0.021,"sortino":2.7479,"max_drawdown":-0.024,"current_drawdown":0},"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"hurst":{"exponent":0.5,"interpretation":"INSUFFICIENT_DATA"},"kelly":{"half_kelly":6.7512,"full_kelly_leverage":13.5023},"years":0.06,"returns":{"vol":0.1616,"cagr":0.4054,"total_pct":2.0465,"annualized":0.3528},"portfolio":{"win_rate":0.6,"end_value":102046.48,"start_value":100000},"trading_days":15}},"exampleRequest":{"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]},"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1IHASDdSqvbaXDYeDdZ6j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:51.444Z","isFirstParty":false}