# BlockRun.AI Polymarket Candlestick Data

> BlockRun.AI Polymarket Candlestick Data 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).

Returns historical OHLC candlestick data (open, high, low, close prices), volume, trade counts, and period timestamps for a specific Polymarket prediction market condition.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/pm/polymarket/candlesticks/0xd6591e966aebf061547ef34cdf3494ed318969887c8b7fb53f10ed5d5461a547
- 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-ed15914a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8YjpndPCWWEwPV1tgIlK9

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-ed15914a
```

Example prompt: Can you pull the historical candlestick price data for the Polymarket market with condition ID 0xd6591e966aebf061547ef34cdf3494ed318969887c8b7fb53f10ed5d5461a547? I want to see OHLC prices, volume, and trade counts over time.

## When to prefer this

Use this endpoint when you need structured historical OHLC price and volume data for a specific Polymarket prediction market, identified by its condition ID. Prefer this over general Polymarket APIs when you need candlestick-formatted data ready for charting or time-series analysis.

## Known failure modes

- Invalid or unknown condition ID returns empty or error response
- Condition ID for a very new or unlisted market may return no historical data
- Network or upstream Polymarket data unavailability causes partial or failed response
- Malformed condition ID format results in a 400-level error

## How this service works

Returns historical Polymarket candlestick data for a given condition ID, including OHLC prices, volume, trade counts, and period timestamps.

## Output

A dataset of historical candlestick records for the specified Polymarket condition, each containing open, high, low, and close (OHLC) prices, trading volume, number of trades, and period start/end timestamps — suitable for charting or quantitative analysis.

## Example request

```json
{
 "input": {
  "body": {}
 }
}
```

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_truncated",
  "_originalSize"
 ],
 "properties": {
  "_truncated": {
   "type": "boolean"
  },
  "_originalSize": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-ed15914a/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)
