analyze_market
Analyze prediction market bets by initiating deep research pipelines for platforms like Kalshi and Polymarket. Provides market intelligence through causal analysis to support informed trading decisions.
Instructions
Start a deep research analysis pipeline for a prediction market bet.
Returns immediately with an analysis_id. Poll with check_analysis_status every 5 seconds until complete, then retrieve results with get_analysis.
Args: bet_text: Description of the bet or market question to analyze. platform: Source platform hint: "kalshi", "polymarket", or "".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bet_text | Yes | ||
| platform | No |
Implementation Reference
- src/rekko_mcp/server.py:201-216 (handler)The analyze_market tool handler, which triggers a deep research analysis pipeline by making a POST request to the /v1/insights endpoint.
@mcp.tool() async def analyze_market(bet_text: str, platform: str = "") -> str: """Start a deep research analysis pipeline for a prediction market bet. Returns immediately with an analysis_id. Poll with check_analysis_status every 5 seconds until complete, then retrieve results with get_analysis. Args: bet_text: Description of the bet or market question to analyze. platform: Source platform hint: "kalshi", "polymarket", or "". """ body: dict = {"bet_text": bet_text} if platform: body["platform"] = platform return await _request("POST", "/v1/insights", json=body)