Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Trading Economics - Python

PyPI version

The Trading Economics Application Python package provides direct access to millions of time series with economic data, financial markets quotes, commodity prices, crypto currencies data and much more. It also allows you to query Trading Economics real-time economic calendar and to subscribe to updates.

Installation

pip install tradingeconomics

Install the latest version directly from GitHub

git clone https://github.com/tradingeconomics/tradingeconomics-python.git
cd tradingeconomics-python
python setup.py install

Authentication

In command window launch python and type

import tradingeconomics as te
te.login('guest:guest')

Please replace guest:guest with your API key or we will be returning sample data.

Sample Usage

te.getCalendarData()
te.getIndicatorData(country=['mexico', 'sweden'], output_type='df')
te.getMarketsData(marketsField = 'commodities')
te.getMarketsBySymbol(symbols='aapl:us')
te.getFinancialsData(symbol = 'aapl:us', output_type = 'df')

More examples

https://github.com/tradingeconomics/tradingeconomics-python/tree/main/examples

Docker

Try our python interface in a container without installing anything

docker run -it --name te-python tradingeconomics-python:latest

Documentation

https://docs.tradingeconomics.com

Learn More

https://tradingeconomics.com/analytics/api.aspx

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages