get_market
Retrieve detailed information about specific prediction markets from platforms like Kalshi and Polymarket to support market analysis and trading decisions.
Instructions
Get detailed information about a specific prediction market.
Args: market_id: Platform-specific market identifier (e.g. Kalshi ticker or Polymarket slug). source: Platform hint: "kalshi", "polymarket", or "" to search both.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | Yes | ||
| source | No |
Implementation Reference
- src/rekko_mcp/server.py:78-88 (handler)The get_market tool implementation which queries the prediction market API.
@mcp.tool() async def get_market(market_id: str, source: str = "") -> str: """Get detailed information about a specific prediction market. Args: market_id: Platform-specific market identifier (e.g. Kalshi ticker or Polymarket slug). source: Platform hint: "kalshi", "polymarket", or "" to search both. """ if source: return await _request("GET", f"/v1/markets/{source}/{market_id}") return await _request("GET", "/v1/markets", params={"query": market_id, "limit": 1})