# AlphaLens Portfolio Risk Analysis

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

Analyzes portfolio holdings to compute risk metrics, diversification scores, and AI-powered portfolio intelligence

## Facts

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

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-00c247d2 -d '<json body>'
```

Example prompt: 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%.

## When to prefer this

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.

## Known failure modes

- 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

## 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 success flag and a data object containing AI-powered portfolio risk metrics, diversification scores, and intelligence insights derived 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-00c247d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphcok.vercel.app](https://www.zero.xyz/host/alphcok.vercel.app/llms.txt)
