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

get_correlation

Compute cross-market correlation graphs to analyze portfolio diversification across prediction markets. Specify market IDs, platform, and time period to identify relationships for risk management.

Instructions

Compute cross-market correlation graph for portfolio diversification analysis.

Args: market_ids: List of market IDs to correlate (minimum 2). platform: Platform: "kalshi" or "polymarket". period: Lookback period: "48h", "7d", or "30d".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_idsYes
platformNokalshi
periodNo7d

Implementation Reference

  • The `get_correlation` tool is defined here using the `@mcp.tool()` decorator, which handles its registration, and calls an internal `_request` helper to fetch correlation data.
    @mcp.tool()
    async def get_correlation(
        market_ids: list[str], platform: str = "kalshi", period: str = "7d"
    ) -> str:
        """Compute cross-market correlation graph for portfolio diversification analysis.
    
        Args:
            market_ids: List of market IDs to correlate (minimum 2).
            platform: Platform: "kalshi" or "polymarket".
            period: Lookback period: "48h", "7d", or "30d".
        """
        return await _request(
            "POST",
            "/v1/correlation",
            json={"market_ids": market_ids, "platform": platform, "period": period},
        )

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