# AlphaLens Portfolio Risk Analysis

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

Analyzes a portfolio of stock holdings to return AI-powered risk metrics and scoring

## Facts

- Endpoint: POST https://alephack.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-4b700638
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2UjJ1S4SLUx1Lx_Hs7JLd

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-4b700638 -d '<json body>'
```

Example prompt: Can you run a portfolio risk analysis on my holdings — I have 40% AAPL, 30% NVDA, 20% MSFT, and 10% TSLA — and tell me how risky this mix is?

## When to prefer this

Choose this endpoint when you need a quick AI-powered, aggregate risk assessment across a set of stock holdings and are comfortable paying per-request via USDC on Base chain. It is well-suited for agent workflows that need portfolio-level risk scoring without building custom risk models.

## Known failure modes

- Missing required 'holdings' array returns validation error
- Empty holdings array may return empty or error response
- Invalid ticker symbols may cause data lookup failures
- Payment failure via x402 on Base chain blocks request
- Malformed holding objects may result in partial or failed analysis

## 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-computed portfolio risk metrics such as overall risk score, diversification analysis, concentration measures, and other portfolio-level statistics based on 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-4b700638/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alephack.vercel.app](https://www.zero.xyz/host/alephack.vercel.app/llms.txt)
