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

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.5.11.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tradingeconomics-4.5.11-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tradingeconomics-4.5.11.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tradingeconomics-4.5.11.tar.gz
Algorithm Hash digest
SHA256 0e6da356166e88a7975041143bbf953ddbc8a0b0d791d02984b6fd214847d111
MD5 fa153626490d6e182c0b22888e3fcd38
BLAKE2b-256 64de496af27bdc8435f7e3cec7d71dcecc6b5e7c6a180ae52c2971022534ba16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradingeconomics-4.5.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7bdaa9bf9e0bd8f9aa60bbb1beeec9bb9eaf2e8e21e65b1d407891afb9232671
MD5 ee463e65c600fa0670d7f2c13c6b6030
BLAKE2b-256 4f3c1bdc0464457450224d5943ddc6b7ea169eb6aa564ea7d0499c590517d2b9

See more details on using hashes here.

Supported by

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