list_markets
Retrieve current prediction markets from Kalshi and Polymarket platforms. Filter by source or set a limit to find specific markets for analysis and trading decisions.
Instructions
List current prediction markets from Kalshi and Polymarket.
Args: source: Filter by platform: "kalshi", "polymarket", or "" for all. limit: Maximum number of markets to return (1-100).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| limit | No |
Implementation Reference
- src/rekko_mcp/server.py:64-75 (handler)The list_markets tool is defined and registered as an MCP tool using the @mcp.tool() decorator, and it dispatches the request to the /v1/markets endpoint.
@mcp.tool() async def list_markets(source: str = "", limit: int = 30) -> str: """List current prediction markets from Kalshi and Polymarket. Args: source: Filter by platform: "kalshi", "polymarket", or "" for all. limit: Maximum number of markets to return (1-100). """ params: dict = {"limit": limit} if source: params["source"] = source return await _request("GET", "/v1/markets", params=params)