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.5.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.5.0.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

tradingeconomics-4.5.0-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tradingeconomics-4.5.0.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tradingeconomics-4.5.0.tar.gz
Algorithm Hash digest
SHA256 e43d8f8dde8ab822bf32c41d797cd69277225f92623c25cc93840548580b333e
MD5 c029f06a4021f42aa91b42315e834eab
BLAKE2b-256 d7c96a67086f638fab67ec5041b1f900828c796aea6c0650354d67718fff9c28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradingeconomics-4.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7592888c5c4ffc8ded4c0364752f6a09be90483c8d465884d05799d7c249c5
MD5 bff75513d4339340d1f1a3672a4670ae
BLAKE2b-256 9382ed5da3a4374b4d108838b0eb99ee9b7e8de1b4d5791fb35783b59003011e

See more details on using hashes here.

Supported by

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