# Prediction Market Price History

> Prediction Market Price History is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Returns a normalized implied-probability time series and momentum summary (change, min/max, trend) for one outcome of a prediction market, identified by id, conditionId, or slug.

## Facts

- Endpoint: GET https://api.agentstools.dev/prediction/prices
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-market-price-history-7403502e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rmudzqkjBL5b6EbrCLSlM

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-7403502e
```

Example prompt: Can you pull the implied probability history for the 'Will Bitcoin hit $100k by end of 2025?' market on Polymarket — I want the Yes outcome over the last week with 60-minute resolution, including the current price, trend, and how much it has changed?

## When to prefer this

Choose this endpoint when you need historical implied-probability data or momentum analytics for a single Polymarket prediction market outcome — especially when you need a normalized time series rather than raw order book data, or when you want pre-computed momentum signals (change, trend, min/max) without doing the math yourself. Prefer this over generic market data APIs when working specifically with Polymarket conditionIds or slugs.

## Known failure modes

- Invalid or unknown market id/slug returns a 404 or empty result
- Outcome name or index not found for the given market returns an error
- Unsupported venue parameter returns a validation error
- Fidelity value below 1 triggers a schema validation error
- Market with no trading history may return an empty time series
- Network or upstream Polymarket data unavailability causes a 5xx error
- Payment not included or insufficient USDC causes a 402 payment required response

## How this service works

Odds/price history for ONE outcome of a prediction market (by id, 0x conditionId or slug): a normalized implied-probability time series plus a momentum summary — change, percent change, min/max, current and trend.

## Output

Returns a normalized implied-probability time series (array of timestamp + probability pairs) for the specified outcome, along with a momentum summary including current price, price change, percent change, min and max prices over the window, and a trend direction label.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "Market/event id: numeric id, 0x conditionId, market-slug or event-slug"
      },
      "venue": {
       "enum": [
        "polymarket"
       ],
       "type": "string",
       "description": "Venue (default polymarket)"
      },
      "outcome": {
       "type": "string",
       "description": "Outcome name (e.g. Yes/No) or index; default index 0 (usually Yes)"
      },
      "fidelity": {
       "type": "integer",
       "minimum": 1,
       "description": "Resolution in minutes (default per interval)"
      },
      "interval": {
       "enum": [
        "1h",
        "6h",
        "1d",
        "1w",
        "1m",
        "max"
       ],
       "type": "string",
       "description": "History window (default 1d)"
      }
     }
    }
   },
   "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-7403502e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
