{"uid":"cap_9v-4snqezPWLyEk3hVvsN","slug":"alphalens-portfolio-risk-analysis-ae0b1519","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://alphacook.vercel.app/api/portfolio","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_6UP_uMGnqRpLPPe_wm687","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-level insights","exampleAgentPrompt":"Can you analyze the risk of my portfolio? I hold 40% AAPL, 30% NVDA, 20% MSFT, and 10% TSLA — give me an AI-powered breakdown of concentration risk and overall portfolio health.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a success boolean and a data object containing AI-powered portfolio risk metrics, including concentration analysis, diversification scores, and other risk indicators derived from the submitted holdings array.","failureModes":["Missing or empty holdings array returns validation error","Malformed holdings entries may cause computation failure","Payment failure via x402 on Base chain returns 402 status","Invalid ticker symbols in holdings may yield partial or null results","Network timeout on Vercel serverless cold start"],"whenToPreferThis":"Use this endpoint when you need to evaluate overall portfolio-level risk across multiple stock holdings simultaneously, rather than analyzing a single stock in isolation. Prefer this over individual stock analysis endpoints when the user wants diversification, concentration, or composite risk metrics across their entire investment mix.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:25.446Z","isFirstParty":false}