# AlphaLens Stock History Endpoint

> AlphaLens Stock History Endpoint is a paid API for AI agents from alephack.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-12).

Retrieves historical price and related data for a given stock symbol

## Facts

- Endpoint: POST https://alephack.vercel.app/api/history?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-stock-history-endpoint-076921f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-d-8VEa9-bVJIO5mMD7Qj

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-history-endpoint-076921f0 -d '<json body>'
```

Example prompt: Pull the historical price data for TSLA using AlphaLens so I can analyze how it's performed over time.

## When to prefer this

Choose this endpoint when you need historical price or OHLCV data for a specific equity ticker, particularly within the AlphaLens suite which also offers sentiment and technical indicators. Prefer this over generic market data APIs if you are already using other AlphaLens endpoints for a consistent data pipeline.

## Known failure modes

- Invalid or unrecognized stock symbol returns success: false or empty data
- Missing required 'symbol' field results in a 400-level error
- Network or upstream data provider outage may return no data
- Payment failure on Base chain (x402) prevents request from being processed

## 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 boolean and a data object containing historical stock data (such as past prices and related OHLCV fields) for the requested symbol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "symbol"
  }
 }
}
```

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