Skip to main content

Trading Economics API

Project description

The Trading Economics Python package provides direct access to over 300,000 economic indicators, exchange rates, stock market indexes, government bond yields, and commodity prices. This package offers various request methods to query the Trading Economics databases and supports exporting data in XML, CSV, or JSON format. The API can be used to feed custom-developed applications, public websites, or off-the-shelf software.

Installation

You can install the package using pip:

  • pip install tradingeconomics

Authentication

To use the Trading Economics API, you need to authenticate by providing your API key and secret:

  • import tradingeconomics as te

  • te.login(‘key:secret’)

Sample Usage

Here are some examples of how to use the Trading Economics Python package:

  • 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’)

GitHub Examples

You can find additional examples and usage instructions in the GitHub repository:

Documentation

For detailed documentation and API reference, please visit the Trading Economics API documentation:

Project details


Release history Release notifications | RSS feed

This version

4.4.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tradingeconomics-4.4.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

tradingeconomics-4.4.0-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file tradingeconomics-4.4.0.tar.gz.

File metadata

  • Download URL: tradingeconomics-4.4.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tradingeconomics-4.4.0.tar.gz
Algorithm Hash digest
SHA256 13c72f7b50459e72a38b2defdab8d9602ff7a80bb833b4bbe68dbf8f83bfdc93
MD5 01936294f5648459466811715b0f4a00
BLAKE2b-256 2fdafeae2f5af9d775c2a00bdd7c27f9d85c78368296c5fa30fb736a68119b5e

See more details on using hashes here.

File details

Details for the file tradingeconomics-4.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tradingeconomics-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 432aabd0327dc460e7c4cecad69394bd4e4f8d933eeaa91dc1b093ca93499f8e
MD5 88f31f86f4520f610ccdd148ca8cebcb
BLAKE2b-256 ffa30be965767a2df1b522efa422da478c7f3d34e4dd748dcf4e8f872a4b1f0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page