# AlphaLens Stock Compare API

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

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

## Facts

- Endpoint: POST https://alphencook.vercel.app/api/compare
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-stock-compare-api-620ebb4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KFpqHzB6SltZ98tz_g4H0

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-620ebb4d -d '<json body>'
```

Example prompt: Compare NVDA, AMD, and INTC side by side — I want to see their technical indicators, sentiment scores, and risk profiles to figure out which one looks strongest right now.

## When to prefer this

Choose this endpoint when you need to evaluate multiple stocks simultaneously against each other rather than analyzing a single stock in isolation. It is ideal for portfolio construction, sector comparisons, or investment decision support where relative ranking and cross-stock sentiment and technical signal comparison matters. Prefer this over single-stock endpoints when the user explicitly wants to pit two or more tickers against each other.

## Known failure modes

- Empty or missing symbols array returns validation error
- Invalid ticker symbols may return empty data or partial results
- More than a supported number of symbols may cause truncation or error
- Network timeout if upstream data providers are slow
- Payment failure via x402 on Base chain if insufficient USDC balance

## 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 JSON object with a success flag and a data object containing side-by-side comparative analysis for each requested symbol, including technical indicators, AI-generated sentiment scores, and portfolio risk metrics per stock.

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