Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Continuously updated prediction-market questions, prices, liquidity, volume, trades, and order books for analyzing forecasts and event-driven markets.
From source to product signal
Polymarket's public Gamma API exposes current market metadata without an API key. Start with a bounded page of active markets and save when the response was retrieved. Treat prices as changing market signals, not guaranteed or independently calibrated probabilities.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
from datetime import datetime, timezone
import pandas as pd
import requests
url = "https://gamma-api.polymarket.com/markets"
response = requests.get(
url,
params={"active": "true", "closed": "false", "limit": 100},
timeout=30,
)
response.raise_for_status()
markets = pd.json_normalize(response.json())
markets["retrieved_at"] = datetime.now(timezone.utc)
print(markets[["question", "volume", "liquidity"]].head())Test a useful signal
Identify which active questions have the deepest markets and test whether liquidity and volume tell the same story.
Polymarket is a company source. Last verified 2026-08-10. Temporal coverage: current and historical markets.