PYTHON ยท MESSAGING

Meridian Edge + Discord

Add prediction market consensus commands to your Discord server โ€” slash commands for live NBA, NHL, MLB consensus and divergence alerts.

Connect your Discord bot to Meridian Edge to access real-time prediction market consensus from 25+ regulated sources. Add slash commands that let your community query live prediction market probabilities.

Requirements

Installpip install discord.py requests

Integration Code

Discord Slash Command Botpython
import discord
from discord.ext import commands
import requests

intents = discord.Intents.default()
bot = commands.Bot(command_prefix="!", intents=intents)
API_KEY = "me_live_YOUR_KEY"
HEADERS = {"X-API-Key": API_KEY}

@bot.slash_command(name="consensus", description="Get prediction market consensus")
async def consensus(ctx, sport: str = "NBA"):
    await ctx.defer()
    r = requests.get(
        "https://meridianedge.io/api/v1/consensus",
        headers=HEADERS,
        params={"sport": sport.upper(), "limit": 5}
    )
    events = r.json().get("events", [])
    if not events:
        await ctx.respond(f"No active {sport} events found.")
        return

    embed = discord.Embed(
        title=f"๐Ÿ“Š {sport.upper()} Prediction Market Consensus",
        color=0xD4662C
    )
    for e in events[:5]:
        prob = round(e["consensus_prob"] * 100)
        embed.add_field(name=e["title"], value=f"{prob}%", inline=False)
    embed.set_footer(text="meridianedge.io | Not investment advice")
    await ctx.respond(embed=embed)

bot.run("YOUR_DISCORD_BOT_TOKEN")

Try it โ€” API key in 10 seconds

Get your Meridian Edge API key and deploy this Discord bot to start sharing prediction market consensus with your community.

View Plans → API Reference

Frequently Asked Questions

How do I add prediction market data to a Discord bot?
Call the Meridian Edge /api/v1/consensus endpoint from your discord.py slash command handler. Format the response as a Discord Embed and return it to the channel. Set up a repeating task for automatic alerts.
What does a Discord prediction market bot cost?
Yes. discord.py is open source. Meridian Edge starter tier: 100 calls/day. Get a key at meridianedge.io/#pricing.