statistics_by_date
Retrieve investment fund statistics for a specific date from the FonParam MCP server, enabling analysis and comparison of Turkish fund data.
Instructions
Belirli bir günün istatistiklerini getirir
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | İstatistik tarihi (YYYY-MM-DD) |
Input Schema (JSON Schema)
{
"properties": {
"date": {
"description": "İstatistik tarihi (YYYY-MM-DD)",
"type": "string"
}
},
"required": [
"date"
],
"type": "object"
}
Implementation Reference
- src/tools.ts:524-525 (handler)The handler case within the handleToolCall switch statement that processes calls to the 'statistics_by_date' tool by invoking the API client's getStatisticsByDate method with the date argument.case 'statistics_by_date': return await this.apiClient.getStatisticsByDate(args.date);
- src/tools.ts:368-381 (registration)The tool registration entry in the getTools() method array, defining the name, description, and input schema for the 'statistics_by_date' tool.{ 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/types.ts:105-113 (schema)TypeScript interface defining the structure of the DailyStatistics object, which is the expected output type of the statistics_by_date 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/api-client.ts:145-148 (helper)Helper method in the API client class that makes the HTTP GET request to fetch daily statistics for the specified date from the FonParam API.async getStatisticsByDate(date: string): Promise<DailyStatistics> { const response: AxiosResponse<DailyStatistics> = await this.client.get(`/statistics/${date}`); return response.data; }