indexPriceKlines
Retrieve candlestick chart data for cryptocurrency index prices to analyze market trends and price movements over specified time periods.
Instructions
Kline/candlestick bars for the index price of a pair.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | End time in ms | |
| interval | Yes | Kline interval | |
| limit | No | Number of results. Default 500, max 1500. | |
| pair | Yes | Trading pair, e.g., BTCUSDT | |
| startTime | No | Start time in ms |
Implementation Reference
- src/index.ts:599-600 (handler)Handler for the 'indexPriceKlines' tool. Dispatches a GET request to the '/fapi/v1/indexPriceKlines' endpoint using the shared makeRequest function with tool arguments.case 'indexPriceKlines': return makeRequest('GET', '/fapi/v1/indexPriceKlines', args);
- src/index.ts:122-136 (registration)Tool registration in the MCP ListTools response, defining name, description, and input schema for 'indexPriceKlines'.{ name: 'indexPriceKlines', description: 'Kline/candlestick bars for the index price of a pair.', inputSchema: { type: 'object', properties: { pair: { type: 'string', description: 'Trading pair, e.g., BTCUSDT' }, interval: { type: 'string', description: 'Kline interval' }, startTime: { type: 'number', description: 'Start time in ms' }, endTime: { type: 'number', description: 'End time in ms' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1500.' }, }, required: ['pair', 'interval'], }, },
- src/index.ts:125-135 (schema)Input schema for validating arguments to the 'indexPriceKlines' tool.inputSchema: { type: 'object', properties: { pair: { type: 'string', description: 'Trading pair, e.g., BTCUSDT' }, interval: { type: 'string', description: 'Kline interval' }, startTime: { type: 'number', description: 'Start time in ms' }, endTime: { type: 'number', description: 'End time in ms' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1500.' }, }, required: ['pair', 'interval'], },