get_macro_data
Retrieve historical macro economic indicator data (GDP, CPI, PMI, etc.) using an indicator code from the available list.
Instructions
Get macro indicator history (GDP, CPI, PMI, etc.).
First call list_macro_indicators to get indicator_code. indicator_code must come from list_macro_indicators. get_macro_data(indicator_code="gdp_cn", start="2020-01-01")
Args: indicator_code: From list_macro_indicators (e.g. "gdp_cn", "cpi_cn") start: Start date YYYY-MM-DD (optional) end: End date YYYY-MM-DD (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| count | No | ||
| start | No | ||
| offset | No | ||
| indicator_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hint | No | ||
| error | No | ||
| cached | No | ||
| source | No | ||
| status | Yes | ||
| updated_at | No |