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
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Market symbol (e.g., "ETH", "BTC"). | |
| start_time | No | Unix 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); }, );