Skip to main content
Glama

waiaas_hl_get_funding_rates

Retrieve historical funding rate data for Hyperliquid perpetual markets to analyze market conditions and trading strategies.

Instructions

Get funding rate history for a Hyperliquid perpetual market.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketYesMarket symbol (e.g., "ETH", "BTC").
start_timeNoUnix timestamp to start from.

Implementation Reference

  • The handler and tool registration for 'waiaas_hl_get_funding_rates'. It takes 'market' and 'start_time' as inputs, queries the API, and returns the result.
    // hl_get_funding_rates
    server.tool(
      'waiaas_hl_get_funding_rates',
      'Get funding rate history for a Hyperliquid perpetual market.',
      {
        market: z.string().describe('Market symbol (e.g., "ETH", "BTC").'),
        start_time: z.string().optional().describe('Unix timestamp to start from.'),
      },
      async (args) => {
        const params = new URLSearchParams();
        params.set('market', args.market);
        if (args.start_time) params.set('startTime', args.start_time);
        const result = await apiClient.get(`/v1/hyperliquid/funding-rates?${params.toString()}`);
        return toToolResult(result);
      },
    );

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/minhoyoo-iotrust/WAIaaS'

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