Build a Prediction Market Bot — Tutorial

A prediction market monitoring bot queries consensus data on a schedule and triggers alerts or actions.

A prediction market monitoring bot queries consensus data on a schedule and triggers alerts or actions. Step-by-step Python tutorial from API key to working bot.

Overview

Step-by-step Python tutorial from API key to working bot. The Meridian Edge API makes this data programmatically accessible in a structured JSON format with named fields for probability, confidence, spread, and market count.

Getting started takes under 5 minutes: get an API key at meridianedge.iothe pricing page, then call GET /api/v1/consensus with your X-API-Key header. The response includes up to 100 events per call with full consensus data.

For researchers and developers building production applications, Starter tier ($29/mo) includes 1,000 calls/day, 30-day historical data, and the /api/v1/opportunities endpoint which surfaces high-divergence events automatically.

How to get started

Related resources

Frequently asked questions

What is build a prediction market bot: tutorial?
A prediction market monitoring bot queries consensus data on a schedule and triggers alerts or actions. Meridian Edge aggregates consensus from multiple regulated prediction market sources, giving you a single calibrated probability updated continuously.
How do I access this data via API?
The Meridian Edge API provides programmatic access to build a prediction market bot — tutorial and more. Starter: 100 calls/day, instant activation. Get a key at meridianedge.io/#pricing.
Is prediction market data from Meridian Edge free?
Yes. The starter tier includes 100 API calls per day with access to the consensus endpoint covering all major sports and political events. Starter ($29/mo) includes 1,000 calls/day plus the divergence opportunities endpoint.

Get API Access

Plans start at $29/mo. 1,000 calls/day. Key in 10 seconds.

View Plans →

Need more? Starter ($29/mo) — 1,000 calls/day + divergence signals