historical_stats
Retrieve historical stock statistics like quarterly results for Indian companies listed on NSE and BSE to analyze performance trends.
Instructions
Endpoint:
/historical_stats- Method:GET- Query Parameters: -stock_name(required): string -stats(required): string - Description: Retrieve historical statistics for a specific stock. - Example Request:http GET /historical_stats?stock_name=TATAMOTORS\u0026stats=quarter_results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_name | Yes | Example value: TCS | |
| stats | No | Example value: |
Implementation Reference
- server.py:56-61 (registration)The tool "historical_stats" is automatically registered by FastMCP.from_openapi based on the OpenAPI specification provided in the OPENAPI_SPEC constant.
mcp = FastMCP.from_openapi( openapi_spec=openapi_dict, client=client, name="indian_stock_exchange_api2", version=__version__ )