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.10.tar.gz (41.8 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.10-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tradingeconomics-4.5.10.tar.gz
Algorithm Hash digest
SHA256 d1492928694a6899cf69f9b6d8c14e5e75e6713e6ba9d596756a2e166991cd2e
MD5 95b2d41afe30d97c3c8d57addf21a937
BLAKE2b-256 07e19111fbb55f4b16e668f3ca4d1fb4bc8e6db238cd99dbddb442621248d8c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradingeconomics-4.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a93c0cc2142511da1e7a2f72df6aea598824e2b21604c673e53a2d64654f9c0a
MD5 4e28915c96e512d2b97910b07fa58e63
BLAKE2b-256 7314aa6e31469ea009033296bf41a6b172d35763934fd30725c9513854d0642f

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