Growth (YoY / QoQ)
get_growthCalculate period-over-period change for financial metrics, returning absolute and percentage variation with correct sign handling for loss-to-profit transitions.
Instructions
Period-over-period change of one metric: current/previous period and value, absolute and percentage change (relative to |previous|, so loss→profit swings are signed correctly). Computed here, not by the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | e.g. revenue, net_income, equity | |
| ticker | No | BIST ticker (Yahoo series) | |
| periods | No | How many current periods to compute | |
| frequency | No | quarterly | |
| comparison | No | auto = yoy (same quarter last year / previous year) | auto |
| disclosure_id | No | KAP FR disclosure id: YoY of the filing's current period vs its prior-year comparative |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||