# AlphaLens Stock History Endpoint

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

Retrieves historical price and trading data for a given stock symbol

## Facts

- Endpoint: POST https://alphcok.vercel.app/api/history
- Price: $0.03/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-history-endpoint-4068aea7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t-jEXlWlnsEISYNVocZZF

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-4068aea7 -d '<json body>'
```

Example prompt: Can you pull the historical price data for NVDA using AlphaLens so I can see how the stock has moved over time?

## When to prefer this

Use this endpoint when you need historical price or trading data for a specific stock ticker as part of financial analysis, backtesting, or portfolio review. Best suited for agents that need to retrieve time-series stock data on demand without maintaining a database.

## Known failure modes

- Missing or invalid stock symbol returns an error or success:false
- Unrecognized ticker symbol may return empty data
- Payment failure via x402/Base chain results in 402 response
- Network or server timeout from Vercel deployment
- Rate limiting if too many requests are made in quick succession

## 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 success boolean and a data object containing historical stock price and trading data for the requested ticker symbol, such as OHLCV (open, high, low, close, volume) records over time.

## 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-4068aea7/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)
