report_trade
Report prediction market trades to aggregate consensus probabilities for platforms like Kalshi and Polymarket, supporting informed trading decisions through market intelligence.
Instructions
Report a trade for consensus probability aggregation.
Args: market_id: Platform-specific market identifier. platform: Platform: "kalshi" or "polymarket". side: Trade direction: "yes" or "no". size_usd: Trade size in USD. price: Execution price (0.0-1.0).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | Yes | ||
| platform | Yes | ||
| side | Yes | ||
| size_usd | Yes | ||
| price | Yes |
Implementation Reference
- src/rekko_mcp/server.py:385-408 (handler)The handler function `report_trade` is registered as an MCP tool using `@mcp.tool()`. It takes trade parameters and sends a POST request to `/v1/trades/report` to record the trade.
@mcp.tool() async def report_trade( market_id: str, platform: str, side: str, size_usd: float, price: float ) -> str: """Report a trade for consensus probability aggregation. Args: market_id: Platform-specific market identifier. platform: Platform: "kalshi" or "polymarket". side: Trade direction: "yes" or "no". size_usd: Trade size in USD. price: Execution price (0.0-1.0). """ return await _request( "POST", "/v1/trades/report", json={ "market_id": market_id, "platform": platform, "side": side, "size_usd": size_usd, "price": price, }, )