PYTHON · MULTI-AGENT

Meridian Edge + CrewAI

Give your CrewAI agents access to live prediction market consensus — NBA, NHL, MLB, MLS, and political events, updated continuously.

Connect CrewAI to Meridian Edge to access real-time prediction market consensus from 25+ regulated sources. Your crew can research event probabilities, detect divergence, and reason about market consensus.

Requirements

Installpip install crewai requests

Integration Code

CrewAI Tool Definitionpython
from crewai_tools import BaseTool
import requests

class PredictionMarketTool(BaseTool):
    name: str = "PredictionMarketConsensus"
    description: str = (
        "Fetches real-time prediction market consensus probabilities. "
        "Input: sport name (NBA, NHL, MLB, MLS) or event keyword."
    )
    api_key: str = "me_live_YOUR_KEY"

    def _run(self, sport: str) -> str:
        r = requests.get(
            "https://meridianedge.io/api/v1/consensus",
            headers={"X-API-Key": self.api_key},
            params={"sport": sport.upper(), "limit": 10}
        )
        events = r.json().get("events", [])
        lines = [f"{e['title']}: {e['consensus_prob']:.0%} (conf {e.get('confidence',0):.0%})"
                 for e in events]
        return "\n".join(lines) if lines else "No events found."

# Usage in your crew
tool = PredictionMarketTool()
# agent = Agent(role="Market Analyst", tools=[tool], ...)

Try it — API key in 10 seconds

Start querying live prediction market consensus from your CrewAI agents. 100 calls/day.

View Plans → API Reference

Frequently Asked Questions

How do I give CrewAI agents prediction market data?
Create a custom CrewAI BaseTool that calls the Meridian Edge /api/v1/consensus endpoint with your API key. The tool can accept a sport name and return consensus probabilities for upcoming events.
Can I use prediction market data with CrewAI?
Yes. Starter tier: 100 calls/day. Get a key at meridianedge.io/#pricing.