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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_funding_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | No | Filter by exchange name (e.g., 'binance', 'hyperliquid'). Omit for all exchanges. | |
| type | No | Market type filter (e.g., 'perps'). Omit for default. | |
| limit | No | Number of results to return. Default 250. |
Implementation Reference
- src/tools/funding-rates.ts:27-33 (handler)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, }); } - src/tools/funding-rates.ts:12-25 (schema)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."), });