{"uid":"cap_xl9M_IPi-cMGpNls4-eQy","slug":"alphalens-portfolio-risk-analysis-fb55640c","name":"AlphaLens Portfolio Risk Analysis","description":"AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.","url":"https://alphencook.vercel.app/api/portfolio?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["holdings"],"properties":{"holdings":{"type":"array","description":"holdings"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IVFQjmCs1vSdXCpP1Tbgv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a portfolio of stock holdings to compute risk metrics, diversification scores, and AI-powered portfolio health insights","exampleAgentPrompt":"Can you run a risk analysis on my portfolio — I hold 40% AAPL, 25% NVDA, 20% MSFT, and 15% TSLA — and tell me how concentrated and risky that mix is?","exampleUseCases":[{"title":"Retail investor portfolio health check","prompt":"I have a portfolio with 50% in AAPL, 30% in AMZN, and 20% in GOOGL — can you analyze the risk and tell me if I'm too concentrated in big tech?"},{"title":"Rebalancing decision support","prompt":"Before I rebalance, can you run a risk assessment on my current holdings: 35% SPY, 25% QQQ, 20% BRK.B, 10% GLD, and 10% TSLA?"},{"title":"New position impact on portfolio risk","prompt":"I currently hold 60% NVDA and 40% AMD. Can you assess the overall portfolio risk so I can see how exposed I am before adding a new position?"}],"resultDescription":"Returns a JSON object with a success flag and a data object containing portfolio risk scores, concentration metrics, diversification analysis, and AI-generated insights about the input holdings.","failureModes":["Missing or empty holdings array returns a 400 validation error","Invalid ticker symbols may result in incomplete or null data for those positions","Payment failure on Base chain returns 402 before the request is processed","Malformed position weights or missing size data may cause computation errors","Server errors on the Vercel deployment return a 500 with success: false"],"whenToPreferThis":"Choose this endpoint when you need a holistic, AI-powered risk and diversification assessment of a multi-stock portfolio rather than analysis of a single stock. It is ideal for evaluating concentration risk, sector exposure, and overall portfolio health in one call, rather than aggregating individual stock analyses manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:35:44.501Z","isFirstParty":false,"canonicalSlug":"alphalens-portfolio-risk-analysis-fb55640c"}