Skip to main content
Glama
VENTURE-AI-LABS

CryptoDataAPI MCP Server

get_funding_rates

Retrieve perpetual funding rates across cryptocurrency exchanges to analyze market sentiment and identify potential corrections or capitulation signals.

Instructions

Get cross-exchange perpetual funding rates. Positive funding means longs pay shorts (bullish crowding); negative funding means shorts pay longs (bearish crowding). Extreme positive rates (>0.05%) often precede corrections; extreme negative rates often signal capitulation. Returns data from multiple exchanges including Binance, Bybit, OKX, and more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchangeNoFilter by exchange name (e.g., 'binance', 'hyperliquid'). Omit for all exchanges.
typeNoMarket type filter (e.g., 'perps'). Omit for default.
limitNoNumber of results to return. Default 250.

Implementation Reference

  • The handler function that executes the logic to fetch funding rates from the API.
    export async function handler(args: z.infer<typeof schema>) {
      return apiGet("/api/v1/market-intelligence/funding-rates", {
        exchange: args.exchange,
        type: args.type,
        limit: args.limit,
      });
    }
  • The input schema for the get_funding_rates tool using zod.
    export const schema = z.object({
      exchange: z
        .string()
        .optional()
        .describe("Filter by exchange name (e.g., 'binance', 'hyperliquid'). Omit for all exchanges."),
      type: z
        .string()
        .optional()
        .describe("Market type filter (e.g., 'perps'). Omit for default."),
      limit: z
        .number()
        .optional()
        .describe("Number of results to return. Default 250."),
    });

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/VENTURE-AI-LABS/cryptodataapi-mcp'

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