{"uid":"cap_vVksecaP06sBjwewIX0CK","slug":"coreforge-portfolio-risk-computation-43e578d1","name":"CoreForge Portfolio Risk Computation","description":"Portfolio risk computation: per-holding and portfolio volatility, Sharpe, Sortino, max drawdown, VaR/CVaR, correlation and concentration analysis, with optional predefined-scenario stress tests and Monte Carlo distribution. Computed data, not a recommendation.","url":"https://coreforge-memory.onrender.com/x402/trading/portfolio-risk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stress":{"type":"boolean","description":"Run the predefined scenario stress tests"},"holdings":{"type":"array","items":{"type":"object"},"description":"2-20 holdings: {symbol, dollarValue | weight, bars? | closes?, beta?, sector?}. Bars are fetched server-side when not supplied."},"monteCarlo":{"type":"boolean","description":"Add a 500-simulation, 252-day Monte Carlo distribution"},"totalValue":{"type":"number","description":"Portfolio value when sizing by weight"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7VQ4_XKxhdbYglZxvm0UX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes per-holding and portfolio-level risk metrics including volatility, Sharpe, Sortino, max drawdown, VaR/CVaR, correlation, concentration, with optional stress tests and Monte Carlo simulation","exampleAgentPrompt":"Analyze the risk of my portfolio — I hold $50,000 in AAPL, $30,000 in MSFT, and $20,000 in NVDA — give me volatility, Sharpe, Sortino, max drawdown, VaR, CVaR, and correlation, and also run the predefined stress tests and a Monte Carlo simulation.","exampleUseCases":[{"title":"Retail investor portfolio risk check","prompt":"Can you compute the risk metrics for my portfolio? I have $40,000 in AAPL, $25,000 in TSLA, $20,000 in AMZN, and $15,000 in SPY. I want to see volatility, Sharpe and Sortino ratios, max drawdown, VaR and CVaR, and how correlated and concentrated these positions are."},{"title":"Stress testing against market scenarios","prompt":"Run a full risk analysis on my three holdings — 40% NVDA, 35% META, and 25% GOOGL — with a total portfolio value of $200,000, and make sure to include the predefined stress test scenarios so I can see how the portfolio would hold up in a downturn."},{"title":"Monte Carlo simulation for retirement planning","prompt":"I want to understand the range of outcomes for my portfolio over the next year. My holdings are $80,000 in VTI, $50,000 in BND, and $30,000 in QQQ. Can you run the Monte Carlo simulation with 500 paths alongside the standard risk metrics like Sharpe, Sortino, drawdown, and VaR?"}],"resultDescription":"Returns per-holding and aggregate portfolio risk metrics: volatility (individual and portfolio-level), Sharpe ratio, Sortino ratio, maximum drawdown, Value at Risk (VaR), Conditional VaR (CVaR), pairwise correlation matrix, and concentration analysis. If stress=true, includes results for predefined market scenarios. If monteCarlo=true, includes a 500-simulation 252-day distribution of portfolio outcomes. All results are computed analytics, not investment recommendations.","failureModes":["Invalid or unrecognized ticker symbols result in failure to fetch price bars server-side","Fewer than 2 holdings provided — minimum requirement is 2 holdings","More than 20 holdings provided — exceeds maximum input limit","Missing dollarValue or weight for holdings when totalValue is needed","Network timeout if external price data fetch is slow","Invalid schema for holdings objects returns a 400-level error","Insufficient price history for a ticker prevents metric computation"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive, multi-metric quantitative risk profile for a portfolio of 2–20 US equity holdings in a single call, especially when you want VaR/CVaR alongside Sharpe/Sortino, correlation, and optional stress testing or Monte Carlo simulation. Prefer this over building your own risk pipeline when you need server-side price bar fetching and don't want to source OHLC data yourself. Best suited for agent workflows that need to present risk analytics to investors or trigger downstream decisions based on risk thresholds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T18:48:44.344Z","isFirstParty":false,"canonicalSlug":"coreforge-portfolio-risk-computation-43e578d1"}