historicalTrades
Retrieve past cryptocurrency market trades from Aster Finance to analyze trading patterns and market activity for informed decision-making.
Instructions
Get older market historical trades.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromId | No | TradeId to fetch from. | |
| limit | No | Number of results. Default 500, max 1000. | |
| symbol | Yes | Trading symbol |
Implementation Reference
- src/index.ts:593-594 (handler)Handler for the historicalTrades tool. Dispatches a GET request to the Aster API endpoint '/fapi/v1/historicalTrades' with provided arguments using the shared makeRequest utility.case 'historicalTrades': return makeRequest('GET', '/fapi/v1/historicalTrades', args);
- src/index.ts:82-90 (schema)Input schema definition for the historicalTrades tool, specifying parameters like symbol (required), limit, and fromId.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1000.' }, fromId: { type: 'number', description: 'TradeId to fetch from.' }, }, required: ['symbol'], },
- src/index.ts:79-91 (registration)Tool registration entry for historicalTrades in the listTools response, including name, description, and input schema.{ name: 'historicalTrades', description: 'Get older market historical trades.', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Trading symbol' }, limit: { type: 'number', description: 'Number of results. Default 500, max 1000.' }, fromId: { type: 'number', description: 'TradeId to fetch from.' }, }, required: ['symbol'], }, },