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

get_market_history

Retrieve price history data for prediction markets on Kalshi or Polymarket over specified time periods to analyze market trends and support trading decisions.

Instructions

Get price history for a prediction market over a configurable period.

Args: platform: Platform: "kalshi" or "polymarket". market_id: Platform-specific market identifier. period: History window: "48h", "7d", or "30d". max_points: Maximum data points to return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYes
market_idYes
periodNo7d
max_pointsNo

Implementation Reference

  • The get_market_history tool implementation, which acts as a handler for the MCP tool and calls the internal _request helper.
    async def get_market_history(
        platform: str, market_id: str, period: str = "7d", max_points: int = 48
    ) -> str:
        """Get price history for a prediction market over a configurable period.
    
        Args:
            platform: Platform: "kalshi" or "polymarket".
            market_id: Platform-specific market identifier.
            period: History window: "48h", "7d", or "30d".
            max_points: Maximum data points to return.
        """
        return await _request(
            "GET",
            f"/v1/markets/{platform}/{market_id}/history",
            params={"period": period, "max_points": max_points},
        )

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