get_account_history
Track one financial statement account over multiple years for one or more companies, returning a compact time series by CVM code, role, or label.
Instructions
Follow one account over time for one or more companies (a compact series).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | How to read `account`. | role |
| format | No | 'con' or 'ind'. | con |
| account | Yes | Account to follow: a CD_CONTA code ('3.01'), a role ('revenue', 'net_income', 'total_assets', 'equity', 'ebit') or, with by='name', a label fragment. | |
| doc_type | No | BPA, BPP, DRE, DFC_MI, DFC_MD, DVA or DMPL. | DRE |
| max_rows | No | Safety cap on returned rows. | |
| cvm_codes | Yes | CVM codes of the companies. | |
| data_type | No | 'dfp' = annual, 'itr' = quarterly. | dfp |
| last_year | No | Last fiscal year. | |
| first_year | No | First fiscal year. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |