PYTHON · ANALYTICS

Meridian Edge + Jupyter Notebook

Load live prediction market consensus into Jupyter for research, backtesting, and visualization. Works with pandas, matplotlib, and plotly.

Connect Jupyter to Meridian Edge to access real-time prediction market consensus from 25+ regulated sources. Ideal for research, calibration analysis, and building prediction models.

Requirements

Installpip install requests pandas matplotlib

Integration Code

Jupyter Notebook — Complete Examplepython
import requests
import pandas as pd
import matplotlib.pyplot as plt

API_KEY = "me_live_YOUR_KEY"
HEADERS = {"X-API-Key": API_KEY}
BASE    = "https://meridianedge.io/api/v1"

# Fetch NBA consensus
r = requests.get(f"{BASE}/consensus",
                 headers=HEADERS, params={"sport": "NBA", "limit": 20})
df = pd.DataFrame(r.json()["events"])

# Display divergence summary
print(df[["title","consensus_prob","divergence_pct","market_count"]].head(10))

# Plot probability distribution
fig, ax = plt.subplots(figsize=(10, 4))
ax.barh(df["title"].str[:40], df["consensus_prob"],
        color=["#22c55e" if p > 0.65 else "#f59e0b" if p > 0.45 else "#ef4444"
               for p in df["consensus_prob"]])
ax.set_xlabel("Consensus Probability")
ax.set_title(f"NBA Prediction Market Consensus ({pd.Timestamp.now().strftime('%Y-%m-%d')})")
plt.tight_layout()
plt.show()

# Divergence analysis
print("\nHigh-divergence events:")
print(df[df["divergence_pct"] > 0.04][["title","consensus_prob","divergence_pct"]])

Try it — API key in 10 seconds

Get your API key and run this notebook to start analyzing live prediction market data right away.

View Plans → API Reference

Frequently Asked Questions

How do I load prediction market data into a Jupyter notebook?
Use the requests library to call the Meridian Edge /api/v1/consensus endpoint and load the events array into a pandas DataFrame. Then use standard pandas, matplotlib, or plotly for analysis and visualization.
What does Jupyter + Meridian Edge cost?
Yes. Jupyter is open source. Meridian Edge starter tier: 100 calls/day. Get a key at meridianedge.io/#pricing.