Skip to main content
Glama
Rekko-AI
by Rekko-AI

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
NameRequiredDescriptionDefault
sourceNo
limitNo

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rekko-AI/rekko-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server