# AlphaLens Compare Stocks API

> AlphaLens Compare Stocks API is a paid API for AI agents from 402alphacook.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-29).

Compares multiple stocks side-by-side using AI-powered analysis including technical indicators, sentiment scoring, and portfolio risk metrics

## Facts

- Endpoint: POST https://402alphacook.vercel.app/api/compare?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-compare-stocks-api-0f867661
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J6NE4IIU91opIm1JDd7h-

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-compare-stocks-api-0f867661 -d '<json body>'
```

Example prompt: Can you compare AAPL, MSFT, and NVDA side by side — I want to see which one has the best technical indicators and sentiment score right now before I decide where to put my money?

## When to prefer this

Choose this endpoint when you need to compare two or more stocks simultaneously rather than analyzing a single ticker in isolation. It is ideal for portfolio construction decisions, sector comparisons, or any scenario where relative ranking of stocks by AI-powered signals (sentiment, technicals, risk) is more useful than absolute single-stock data. Prefer it over single-stock endpoints when the user's question is inherently comparative ('which is better', 'rank these', 'vs').

## Known failure modes

- Empty or missing symbols array returns validation error
- Invalid or unrecognized ticker symbols may return no data or partial results
- Network timeout on vercel deployment under heavy load
- Malformed request body without required symbols field returns 400-level error
- Symbols for non-US or delisted stocks may not be supported

## 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 structured comparison object containing side-by-side analysis data for all submitted stock symbols, including technical indicators, AI-generated sentiment scores, and portfolio risk metrics for each ticker, with a success boolean indicating call status.

## Request schema (JSON Schema)

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

## 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-compare-stocks-api-0f867661/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402alphacook.vercel.app](https://www.zero.xyz/host/402alphacook.vercel.app/llms.txt)
