Get Macroeconomic Calendar for Asset
ta_get_economic_calendarFetch live macroeconomic calendar events filtered by the currencies that affect a selected asset symbol, avoiding manual currency lookup.
Instructions
Get macroeconomic calendar events (live verified feed) automatically filtered by the currencies impacting a selected asset symbol (e.g. 'EURUSD=X' -> EUR, USD; 'AAPL' -> USD; 'GBPJPY' -> GBP, JPY; 'BTC-USD' -> USD). Returns an empty list with source='unavailable' if the live feed is unreachable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days ahead from date_from when date_to is omitted (default: 7, max: 60) | |
| symbol | Yes | Selected asset ticker symbol or currency pair (e.g. 'EURUSD=X', 'EUR/USD', 'GBPUSD', 'AAPL', 'BTC-USD', 'SAP.DE') | |
| date_to | No | End date in YYYY-MM-DD format (defaults to date_from + days) | |
| countries | No | Optional override list of currency codes or countries (e.g. ['USD', 'EUR']). When omitted, automatically resolved from 'symbol'. | |
| date_from | No | Start date in YYYY-MM-DD format (defaults to today UTC) | |
| importances | No | Filter by event importance level: '1' (low), '2' (medium), '3' (high). Also accepts 'low', 'medium', 'high'. Omit for all levels. | |
| max_results | No | Maximum number of calendar events to return (default: 30, max: 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | ||
| source | No | ||
| symbol | No | ||
| date_to | No | ||
| message | No | ||
| date_from | No | ||
| currencies | No | ||
| importances | No | ||
| total_events | No | ||
| truncated_to | No | ||
| filter_countries | No | ||
| normalized_symbol | No |