# BlockRun.AI Polymarket Candlesticks

> BlockRun.AI Polymarket Candlesticks is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0085/call, status unknown (last checked 2026-09-14).

Returns historical OHLCV candlestick (open/high/low/close/volume) data for a specific Polymarket prediction market identified by its hash

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/pm/polymarket/candlesticks/:hash
- Price: $0.0085/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-32aaafba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f-45EwwEkQx0H6GBrMAQq

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-32aaafba
```

Example prompt: Can you pull the historical OHLCV candlestick data for the Polymarket market with hash 0x3a5b... so I can see how its price has moved over time?

## When to prefer this

Use this endpoint when you need historical price/volume candlestick data specifically for a Polymarket prediction market, identified by its contract hash. Prefer this over general DeFi price feeds when the target is a Polymarket event contract rather than a fungible token. Useful for backtesting, charting, or analyzing how market sentiment on a prediction event evolved over time.

## Known failure modes

- Invalid or unknown market hash returns empty or error response
- Market with no trading history returns empty candlestick array
- Malformed hash parameter causes 400 bad request
- Rate limiting or quota exceeded returns 429
- Payment not provided or insufficient causes 402 Payment Required

## How this service works

Get historical OHLCV candlestick data for a market

## Output

Returns a data object containing historical OHLCV candlestick records for the specified Polymarket market, including open, high, low, close prices and volume across time intervals — suitable for charting or technical analysis of prediction market price movements.

## 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-32aaafba/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)
