{"uid":"cap_8e7_x2QKQhVvIti8B6PjA","slug":"alphalens-portfolio-risk-analysis-00c247d2","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://alphcok.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":"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.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_NbHjoknYBNHe52Ua7ifN1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes portfolio holdings to compute risk metrics, diversification scores, and AI-powered portfolio intelligence","exampleAgentPrompt":"Can you analyze the risk of my stock portfolio? I'm holding AAPL at 40%, MSFT at 30%, NVDA at 20%, and TSLA at 10%.","exampleUseCases":null,"resultDescription":"Returns a success flag and a data object containing AI-powered portfolio risk metrics, diversification scores, and intelligence insights derived from the submitted holdings array.","failureModes":["Missing or empty holdings array returns validation error","Malformed holdings objects cause parsing failure","Invalid ticker symbols may result in no data for those positions","Payment not processed or x402 auth missing returns 402 Payment Required","Server error on Vercel infrastructure returns 500"],"whenToPreferThis":"Use this endpoint when you need a holistic risk and diversification assessment across a set of stock holdings rather than analysis of a single stock. Prefer this over individual stock endpoints when the user wants portfolio-level metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T18:40:07.371Z","isFirstParty":false,"canonicalSlug":"alphalens-portfolio-risk-analysis-00c247d2"}