# Vigilix Predict > Delayed historical data from Polymarket and Kalshi prediction markets for AI agents: price history, order books, pre-resolution trajectories, resolutions and biggest movers. Pay per call in USDC on Base with x402 v2, no API key. Never charged when a call fails. Data is delayed by at least 24 hours. Every response carries `source` (Polymarket or Kalshi), the market `url` and a `disclaimer`. How to pay: call a paid endpoint without payment and you get HTTP 402 with a PAYMENT-REQUIRED header (x402 v2, exact scheme, USDC on eip155:8453, payTo 0x376d3415E3AC9E9090396737c81bB4C62a3839dF). Sign it with an x402 client and replay the same request with a PAYMENT-SIGNATURE header. Invalid parameters, unknown markets and server errors are never charged. ## Endpoints - `GET https://predict.vigilix.fr/v1/markets/search?q=&platform=&status=` — Search markets (max 20 results) — free - `GET https://predict.vigilix.fr/v1/markets/{id}/history` — Price history of a market (bid/ask/mid/last) at 5m, 1h or 1d resolution — $0.002 per call - `GET https://predict.vigilix.fr/v1/markets/{id}/orderbook` — Top-10 order book recorded closest to a given instant (1-minute snapshots, top markets) — $0.005 per call - `GET https://predict.vigilix.fr/v1/markets/{id}/pre-resolution` — Price trajectory and order-book snapshots during the hours before a market resolved — $0.01 per call - `GET https://predict.vigilix.fr/v1/resolutions` — Resolved markets with result, close time and last recorded price before the close — $0.002 per call - `GET https://predict.vigilix.fr/v1/movers` — Markets whose odds moved the most over a window ending at the data cutoff — $0.003 per call ## Identifiers - Polymarket markets: numeric id (e.g. 559651). Kalshi markets: ticker (e.g. KXELONMARS-99). - Find ids with the free search endpoint. - Pre-resolution is charged only with at least 3 price points in the window (otherwise 404 insufficient_data, not charged): list purchasable markets with `GET https://predict.vigilix.fr/v1/markets/search?resolved_before_cutoff=true` (results carry closed_time). ## Free samples (no payment) Each paid endpoint has a free GET sample: the real paid response for a fixed public example (example market, last 24 h before the cutoff), refreshed at most once a day, with sample: true and paid_url. - [history](https://predict.vigilix.fr/v1/sample/history): sample of `GET https://predict.vigilix.fr/v1/markets/{id}/history` - [orderbook](https://predict.vigilix.fr/v1/sample/orderbook): sample of `GET https://predict.vigilix.fr/v1/markets/{id}/orderbook` - [pre-resolution](https://predict.vigilix.fr/v1/sample/pre-resolution): sample of `GET https://predict.vigilix.fr/v1/markets/{id}/pre-resolution` - [resolutions](https://predict.vigilix.fr/v1/sample/resolutions): sample of `GET https://predict.vigilix.fr/v1/resolutions` - [movers](https://predict.vigilix.fr/v1/sample/movers): sample of `GET https://predict.vigilix.fr/v1/movers` ## Discovery - [OpenAPI](https://predict.vigilix.fr/openapi.json) - [x402 resources](https://predict.vigilix.fr/x402-resources) - [/.well-known/x402.json](https://predict.vigilix.fr/.well-known/x402.json) ## Disclaimer Historical market data independently recorded from the public Polymarket and Kalshi APIs and served with a delay of at least 24 hours. Not affiliated with, endorsed by or sponsored by Polymarket or Kalshi. Provided as is for informational and research purposes only; not financial, legal or investment advice; completeness and accuracy are not guaranteed.