# AlphaLens Stock Compare Endpoint

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

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

## Facts

- Endpoint: POST https://alphcok.vercel.app/api/compare
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-stock-compare-endpoint-8cb3e33a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wD_HpIlcrSh3-UD6B8cnO

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-endpoint-8cb3e33a -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need to evaluate multiple stocks simultaneously and want a unified comparison view. Ideal for portfolio selection decisions, competitive stock analysis, or ranking equities by AI-scored technical and sentiment metrics. Choose over single-stock analysis endpoints when the user explicitly wants to contrast two or more tickers.

## Known failure modes

- Empty or invalid symbols array returns error
- Unrecognized ticker symbols may return incomplete data
- Network timeout on Vercel serverless cold start
- Payment failure via x402 on Base chain blocks request
- Too many symbols in array may cause timeout or partial results

## 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 AI-powered analysis metrics for each submitted stock symbol, including technical indicators, sentiment scores, and portfolio risk data, wrapped in a success boolean response.

## 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-endpoint-8cb3e33a/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)
