fundingRate
Retrieve historical funding rate data for cryptocurrency futures trading on Aster Finance to analyze market trends and inform trading strategies.
Instructions
Get funding rate history.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | End time in ms | |
| limit | No | Number of results. Default 100, max 1000. | |
| startTime | No | Start time in ms | |
| symbol | No | Trading symbol |
Implementation Reference
- src/index.ts:605-606 (handler)The handler logic for the 'fundingRate' tool within the CallToolRequestSchema switch statement. It calls the shared makeRequest function with GET method to the '/fapi/v1/fundingRate' endpoint, passing the tool arguments.case 'fundingRate': return makeRequest('GET', '/fapi/v1/fundingRate', args);
- src/index.ts:165-173 (schema)Input schema definition for the 'fundingRate' tool, specifying the expected parameters and their types/descriptions.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol' }, startTime: { type: 'number', description: 'Start time in ms' }, endTime: { type: 'number', description: 'End time in ms' }, limit: { type: 'number', description: 'Number of results. Default 100, max 1000.' }, }, },
- src/index.ts:162-174 (registration)Registration of the 'fundingRate' tool in the ListToolsRequestSchema response's tools array, including name, description, and input schema.{ name: 'fundingRate', description: 'Get funding rate history.', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol' }, startTime: { type: 'number', description: 'Start time in ms' }, endTime: { type: 'number', description: 'End time in ms' }, limit: { type: 'number', description: 'Number of results. Default 100, max 1000.' }, }, }, },