get_kpi
Get a specific KPI value for a stock using instrument ID, KPI ID, calculation group, and calculation. Useful for targeted financial data retrieval.
Instructions
Get a specific KPI value for one instrument. Read the 'borsdata://reference/kpi-metadata' resource to look up kpiId numbers. Read 'borsdata://guide/api-overview' for calcGroup and calc parameter explanations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calc | Yes | Calculation: high, low, mean, cagr, or latest | |
| insId | Yes | Instrument ID | |
| kpiId | Yes | KPI ID (e.g. 2=P/E, 3=P/S, 4=P/B). Read the kpi-metadata resource to find IDs. | |
| calcGroup | Yes | Time period: 1year, 3year, 5year, 7year, 10year, 15year, or last |