statistics_by_date
Retrieve investment fund statistics for a specific date from Turkey's financial data. Use this tool to analyze fund performance, view company metrics, and access historical data by providing a date in YYYY-MM-DD format.
Instructions
Belirli bir günün istatistiklerini getirir
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | İstatistik tarihi (YYYY-MM-DD) |
Implementation Reference
- src/api-client.ts:145-148 (handler)Core handler function in the API client that executes the HTTP GET request to fetch daily statistics for the specified date.async getStatisticsByDate(date: string): Promise<DailyStatistics> { const response: AxiosResponse<DailyStatistics> = await this.client.get(`/statistics/${date}`); return response.data; }
- src/tools.ts:368-381 (registration)MCP tool registration defining the name, description, and input schema for 'statistics_by_date'.{ name: 'statistics_by_date', description: 'Belirli bir günün istatistiklerini getirir', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'İstatistik tarihi (YYYY-MM-DD)' } }, required: ['date'] } },
- src/tools.ts:524-525 (handler)Tool dispatch handler in FonParamTools.handleToolCall that invokes the API client method with the date argument.case 'statistics_by_date': return await this.apiClient.getStatisticsByDate(args.date);
- src/types.ts:105-113 (schema)TypeScript interface defining the structure of the DailyStatistics output returned by the tool.export interface DailyStatistics { date: string; total_funds: number; total_companies: number; total_investors: number; total_aum: number; avg_profit: number; avg_loss: number; }
- src/tools.ts:371-380 (schema)JSON schema for input validation defining the required 'date' parameter (YYYY-MM-DD format).inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'İstatistik tarihi (YYYY-MM-DD)' } }, required: ['date'] }