PYTHON · MESSAGING

Meridian Edge + Slack

Post real-time prediction market consensus alerts to your Slack workspace — divergence signals, pre-game summaries, and scheduled consensus digests.

Connect Meridian Edge to Slack to deliver real-time prediction market consensus from 25+ regulated sources directly to your channels. Automate divergence alerts and daily pre-game summaries.

Requirements

Installpip install requests (no extra Slack SDK needed)

Integration Code

Slack Incoming Webhook Alertpython
import requests

SLACK_WEBHOOK = "https://hooks.slack.com/services/YOUR/WEBHOOK/URL"
API_KEY       = "me_live_YOUR_KEY"
HEADERS       = {"X-API-Key": API_KEY}

def post_consensus_alert(sport="NBA"):
    r = requests.get(
        "https://meridianedge.io/api/v1/consensus",
        headers=HEADERS,
        params={"sport": sport, "limit": 10}
    )
    events = r.json().get("events", [])
    alerts = [e for e in events if e.get("divergence_pct", 0) > 0.04]
    if not alerts:
        return

    blocks = [{"type":"section","text":{"type":"mrkdwn",
               "text":f"*Divergence Alert — {sport}* ({len(alerts)} events)"}}]
    for e in alerts[:5]:
        prob = round(e["consensus_prob"] * 100)
        div  = round(e.get("divergence_pct", 0) * 100, 1)
        blocks.append({"type":"section","text":{"type":"mrkdwn",
            "text":f"• *{e['title']}*\n  {prob}% consensus · {div}% spread"}})
    blocks.append({"type":"context","elements":[{"type":"mrkdwn",
        "text":"_meridianedge.io · Not investment advice_"}]})

    requests.post(SLACK_WEBHOOK, json={"blocks": blocks})

post_consensus_alert("NBA")

Try it — API key in 10 seconds

Create a Slack incoming webhook, get your Meridian Edge API key, and start receiving prediction market alerts in your workspace.

View Plans → API Reference

Frequently Asked Questions

How do I send prediction market alerts to Slack?
Create a Slack incoming webhook URL in your workspace settings. Call the Meridian Edge API to fetch consensus data, filter for divergence events, and POST a formatted blocks message to the webhook URL.
What does Slack + Meridian Edge cost?
Yes. Slack incoming webhooks are included. Meridian Edge starter tier: 100 calls/day. Get a key at meridianedge.io/#pricing.