# BlockRun.AI Kalshi Historical Orderbook Snapshots

> BlockRun.AI Kalshi Historical Orderbook Snapshots is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Fetches historical orderbook snapshots for a specified Kalshi prediction market

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/pm/kalshi/orderbooks
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-2e4410c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YUH3yVS7l72dIJYozw1pe

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 blockrun-ai-2e4410c3
```

Example prompt: Can you pull the historical orderbook snapshots for the Kalshi market with ticker KXUSDC-24NOV so I can see how the bid and ask levels changed over time?

## When to prefer this

Use this endpoint when you need historical orderbook depth and snapshot data specifically for Kalshi prediction markets — useful for backtesting, liquidity analysis, market microstructure research, or understanding how bid/ask levels evolved over time on a specific Kalshi contract.

## Known failure modes

- Invalid or unknown Kalshi market ticker returns an error or empty result
- Missing required market identifier parameter causes a 400-level error
- Payment not processed (x402 payment required) results in 402 Payment Required
- Rate limiting or quota exceeded returns 429 or similar error
- Market with no historical orderbook data returns empty dataset

## How this service works

Fetch historical orderbook snapshots for a Kalshi market

## Output

Returns historical orderbook snapshot data for the specified Kalshi market, including bid/ask price levels and quantities at various points in time, wrapped in a data object.

## Example request

```json
{
 "ticker": "KXBTC",
 "end_time": 1735776000,
 "start_time": 1735689600
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "query": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-2e4410c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
