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
Built Distribution
Hashes for tradingeconomics-4.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f81c9ac577a7ab681a9fba040f08cc569623e4a01686177d0616d15c9b0a8ff |
|
MD5 | ae372012c5a7a60e4661f62198c3ad76 |
|
BLAKE2b-256 | b3b95bca8832bf067c1f3313dcb5dfbb34d22edb787c30b9d8767d16f00adebb |