Skip to main content
Glama
tdnupe3

Coin Railz MCP Server

by tdnupe3

get_correlation_matrix

Analyze correlation coefficients between multiple cryptocurrency tokens over specified timeframes to identify price movement relationships.

Instructions

Get correlation matrix between multiple tokens.

Args: tokens: List of token addresses or symbols to analyze timeframe: Analysis period. Options: 1d, 7d, 30d, 90d

Returns: Correlation coefficients between all token pairs.

Price: $0.50

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokensYes
timeframeNo7d

Implementation Reference

  • The MCP tool handler for "get_correlation_matrix", which accepts a list of tokens and a timeframe, calls the internal `call_coinrailz_service` helper, and returns the correlation data as a JSON string.
    @mcp.tool()
    async def get_correlation_matrix(tokens: List[str], timeframe: str = "7d") -> str:
        """
        Get correlation matrix between multiple tokens.
        
        Args:
            tokens: List of token addresses or symbols to analyze
            timeframe: Analysis period. Options: 1d, 7d, 30d, 90d
        
        Returns:
            Correlation coefficients between all token pairs.
        
        Price: $0.50
        """
        payload = {"tokens": tokens, "timeframe": timeframe}
        result = await call_coinrailz_service("correlation-matrix", payload)
        return json.dumps(result, indent=2)

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/tdnupe3/mcp-server-coinrailz'

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