get_ratio_history
Retrieve a financial ratio's historical time series for trend analysis. Input a ticker and ratio to get annual values over specified years.
Instructions
Get a single financial ratio over time. Returns a time series for trend analysis. Valid ratios: gross_margin, operating_margin, net_margin, return_on_equity, return_on_assets, debt_to_equity, current_ratio, interest_coverage, revenue_growth_yoy, net_income_growth_yoy, eps_growth_yoy. Args: ticker: Stock ticker (e.g. 'AAPL'), 10-digit CIK ('0000320193'), stripped CIK ('320193'), or historical ticker ('FB' resolves to META).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | Yes | ||
| period | No | annual | |
| ticker | Yes | ||
| to_year | No | ||
| from_year | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |