# AlphaLens Stock Compare API

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

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

## Facts

- Endpoint: POST https://alphacx402.vercel.app/api/compare?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-stock-compare-api-e40c8d3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eC7KsAIzxztUhLMXcuiPW

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-stock-compare-api-e40c8d3d -d '<json body>'
```

Example prompt: Can you compare AAPL, MSFT, and NVDA side by side — I want to see their technical indicators, sentiment scores, and risk profiles so I can decide which one to buy?

## When to prefer this

Choose this endpoint when you need a direct multi-stock comparison rather than analyzing a single stock in isolation. It is ideal for investment decision-making scenarios where a user has narrowed down to 2-5 candidates and wants a structured head-to-head view of technicals, sentiment, and risk. Prefer this over single-stock analysis endpoints when the core question is 'which one is better' rather than 'tell me about this one.'

## Known failure modes

- Invalid or unrecognized ticker symbols return an error or empty data
- Too many symbols in the array may hit rate or processing limits
- Symbols for non-US or OTC equities may return incomplete data
- Network timeout on the Vercel serverless function during market hours under load
- Payment failure on Base chain (insufficient USDC) blocks the request

## 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 of the requested stock symbols, including technical indicators, sentiment scores, risk metrics, and relative performance data for each symbol in the input array

## 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-stock-compare-api-e40c8d3d/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)
