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.
pip install requests (no extra Slack SDK needed)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")Create a Slack incoming webhook, get your Meridian Edge API key, and start receiving prediction market alerts in your workspace.
View Plans → API Reference