get_consensus
Retrieve consensus probability from aggregated agent trades on prediction markets to inform trading decisions.
Instructions
Get consensus probability from aggregated agent trades.
Args: market_id: Platform-specific market identifier. platform: Platform: "kalshi" or "polymarket". period: Lookback period: "48h", "7d", or "30d".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | Yes | ||
| platform | No | kalshi | |
| period | No | 7d |
Implementation Reference
- src/rekko_mcp/server.py:299-313 (handler)The get_consensus tool fetches consensus probability from aggregated agent trades by making a GET request to the /v1/markets/{platform}/{market_id}/consensus endpoint.
async def get_consensus( market_id: str, platform: str = "kalshi", period: str = "7d" ) -> str: """Get consensus probability from aggregated agent trades. Args: market_id: Platform-specific market identifier. platform: Platform: "kalshi" or "polymarket". period: Lookback period: "48h", "7d", or "30d". """ return await _request( "GET", f"/v1/markets/{platform}/{market_id}/consensus", params={"period": period}, )