# AlphaLens Portfolio Risk Analysis

> AlphaLens Portfolio Risk Analysis is a paid API for AI agents from alphacx402.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-11).

Analyzes a portfolio of stock holdings to compute risk metrics, diversification scores, and AI-powered portfolio-level intelligence

## Facts

- Endpoint: POST https://alphacx402.vercel.app/api/portfolio?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-portfolio-risk-analysis-cd90ffc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ayo_Atv-3NQU1HqyCIPJV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability alphalens-portfolio-risk-analysis-cd90ffc4 -d '<json body>'
```

Example prompt: Can you analyze the risk across my stock portfolio? I'm holding AAPL at 40%, NVDA at 30%, TSLA at 20%, and MSFT at 10% — tell me how risky and diversified this mix is.

## When to prefer this

Choose this endpoint when you need AI-powered portfolio-level risk and diversification analysis across multiple stock holdings simultaneously. It is preferable over single-stock endpoints when the user's question is about their overall portfolio composition, concentration risk, or balance rather than a single ticker. Best suited for retail investors, financial planning agents, or rebalancing workflows where a holistic view is required.

## Known failure modes

- Missing or empty holdings array returns validation error
- Invalid ticker symbols may result in incomplete analysis or error
- Malformed holdings objects (missing required fields) cause request failure
- Network or upstream data provider outages return service unavailable
- Payment failure on Base chain (x402) blocks request processing

## How this service works

AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success flag and a data object containing AI-powered portfolio risk metrics, diversification scores, and other portfolio-level analysis computed from the submitted holdings array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "holdings"
 ],
 "properties": {
  "holdings": {
   "type": "array",
   "description": "holdings"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alphalens-portfolio-risk-analysis-cd90ffc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphacx402.vercel.app](https://www.zero.xyz/host/alphacx402.vercel.app/llms.txt)
