Python wrapper for the Trading Economics API, providing access to economic indicators, calendar events, commodities, currencies, bonds, and forecasts. Current version 4.5.9. Active development with irregular releases.
pip install tradingeconomicsVerified import paths — ran on the pinned version, not inferred.
Logs in with API key from env var and fetches GDP data for United States.
Use module-level functions: import tradingeconomics as te then te.login() and te.getIndicatorData()
Always call te.login('YOUR_API_KEY') first.Use getCalendarData() instead of getCalendar() for filtered results.
Ensure te.login('YOUR_API_KEY') is called and key is correct.Update imports: use import tradingeconomics as te, then te.getIndicatorData().
Use te.login('YOUR_API_KEY') or te.login(api_key='YOUR_API_KEY') depending on version. Check docs.No dependency data recorded yet.