# AlphaLens Stock Compare Endpoint

> AlphaLens Stock Compare Endpoint is a paid API for AI agents from alphacook.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, technical indicators, and sentiment scoring

## Facts

- Endpoint: POST https://alphacook.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-2a66c56e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2dE5lP_Qvo2ioekvuaQRT

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-2a66c56e -d '<json body>'
```

Example prompt: Can you compare AAPL, MSFT, and NVDA for me — I want to see their technical indicators, sentiment scores, and which one looks strongest right now?

## When to prefer this

Use this endpoint when you need to directly compare two or more stocks against each other rather than analyzing a single stock in isolation. Ideal for investment decision support, portfolio construction, or when a user asks 'which is better' between multiple tickers.

## Known failure modes

- Missing or empty symbols array returns validation error
- Invalid ticker symbols return no data or partial results
- Network or upstream data provider outage causes 5xx error
- Payment failure via x402 on Base chain blocks the request
- Too many symbols in the array may cause timeout or truncated response

## 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, AI sentiment scores, and relative performance metrics for each ticker.

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