# Prediction Market Price History

> Prediction Market Price History is a paid API for AI agents from d2ngmd5yvdfkqu.cloudfront.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns time-bucketed historical price data for a single prediction market event on a specified exchange (Kalshi, Polymarket, or Gemini).

## Facts

- Endpoint: GET https://d2ngmd5yvdfkqu.cloudfront.net/price-history
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-market-price-history-5cb5d769
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OIiCethAkMrADefg38yQZ

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 prediction-market-price-history-5cb5d769
```

Example prompt: Pull the 5-minute price candles for the Polymarket event 'TRUMP-WIN-2024' (exchange ID 4137) from 2024-11-04T00:00:00Z to 2024-11-05T00:00:00Z, returning up to 288 buckets.

## When to prefer this

Use this endpoint when you need historical price data for a specific prediction market event on a known exchange (Kalshi=4141, Polymarket=4137, Gemini=4008). Ideal for charting price movement, analyzing volatility, or backtesting signals on event contracts. Prefer this over volume or open-interest endpoints when the primary need is price (not trading activity or positioning).

## Known failure modes

- Missing required 'event' parameter returns 400 error
- Missing required 'exchangeId' parameter returns 400 error
- Unknown event ticker returns empty or 404 response
- Invalid exchangeId (not 4141, 4137, or 4008) returns error
- Timestamps outside available data range return empty results
- Malformed ISO-8601 timestamps return 400 validation error
- Payment failure (x402) returns 402 Payment Required before data is served

## How this service works

Historical pricing for a single prediction market on one exchange.

## Output

Returns a time series of price buckets (candles) for the specified prediction market event on the chosen exchange, covering the requested time window. Each bucket represents aggregated price data for the given interval (e.g. open, high, low, close within a 5-minute window).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "event",
      "exchangeId"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "UTC end timestamp in ISO-8601 format."
      },
      "from": {
       "type": "string",
       "description": "UTC start timestamp in ISO-8601 format."
      },
      "event": {
       "type": "string",
       "description": "Event ticker or market identifier (from /prediction-markets)."
      },
      "limit": {
       "type": "string",
       "description": "Maximum number of buckets to return (e.g. 288 for 24h of 5m candles)."
      },
      "interval": {
       "type": "string",
       "description": "Bucket size in milliseconds (e.g. 300000 for 5-minute candles)."
      },
      "exchangeId": {
       "type": "string",
       "description": "Numeric exchange ID. 4141=Kalshi, 4137=Polymarket, 4008=Gemini."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-market-price-history-5cb5d769/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from d2ngmd5yvdfkqu.cloudfront.net](https://www.zero.xyz/host/d2ngmd5yvdfkqu.cloudfront.net/llms.txt)
