Skip to main content

Library to download data from Trading Economics API

Project description

Python version of Trading Economics API library.

This package provides to Trading Economics API users easiest way to extract different kind of data using Python programming language.
Available functions are:

* getForecastData - Return forecast values by country, by indicator, by country and indicator.

Parameters:
-----------
country: string or list.
String to get data for one country. List of strings to get data for
several countries. For example, country = ['United States', 'Australia'].
indicator: string or list.
String to get data for one category. List of strings to get data for several calendar events.
For example, category = 'GDP Growth Rate' or
category = ['Exports', 'Imports']
output_type: string.
'dict'(default) for dictionary format output, 'df' for data frame,
'raw' for list of dictionaries without any parsing.
credentials: string.
User's credentials.
* getHistoricalData - Return historical information for specific country and indicator.

Parameters:
-----------
country: string or list.
String to get data for one country. List of strings to get data for
several countries. For example, country = ['United States', 'Australia'].
indicator: string or list.
String to get data for one category. List of strings to get data for several calendar events.
For example, category = 'GDP Growth Rate' or
category = ['Exports', 'Imports']
initDate: string with format: YYYY-MM-DD.
For example: '2011-01-01'
endDate: string with format: YYYY-MM-DD.
output_type: string.
'dict'(default) for dictionary format output, 'df' for data frame,
'raw' for list of dictionaries without any parsing.
credentials: string.
User's credentials.
* getIndicatorData - Return a list of all indicators, indicators by country or country-indicator pair.

Parameters:
-----------
country: string or list.
String for one country information. List of strings for
several countrys, for example country = ['country_name', 'country_name'].
indicators: string or list.
String for one indicator. List of strings for several indicators, for example
indicators = 'indicator_name' or
indicators = ['indicator_name', 'indicator_name']
output_type: string.
'dict'(default) for dictionary format output, 'df' for data frame,
'raw' for list of dictionaries directly from the web.
credentials: string.
User's credentials.
* getMarketsData - Returns a list of available commodities, currencies, indeces or bonds and their latest values.
Parameters:
-----------
marketsField: string.
Takes either one of 'commodity','currency',
'index' or 'bond' as options.

output_type: string.
'df'(default) for data frame,
'raw' for list of unparsed data.
credentials: string.
User's credentials.
* getCalendarData - Return calendar events.

Parameters:
-----------
country: string or list.
String to get data for one country. List of strings to get data for
several countries. For example, country = ['United States', 'Australia'].
category: string or list.
String to get data for one category. List of strings to get data for several calendar events.
For example, category = 'GDP Growth Rate' or
category = ['Exports', 'Imports']
initDate: string with format: YYYY-MM-DD.
For example: '2011-01-01'
endDate: string with format: YYYY-MM-DD.
output_type: string.
'dict'(default) for dictionary format output, 'df' for data frame,
'raw' for list of dictionaries without any parsing.
credentials: string.
User's credentials.

Results are available in differente formats, such as : JSON, pandas.DataFrame or dictionary.

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-0.2.19.zip (15.3 kB view details)

Uploaded Source

File details

Details for the file tradingeconomics-0.2.19.zip.

File metadata

  • Download URL: tradingeconomics-0.2.19.zip
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.14.2 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for tradingeconomics-0.2.19.zip
Algorithm Hash digest
SHA256 1e88b7d5acaf0237a6da99812ad4950969c930569724d8237fd8677128bd7849
MD5 34e249c25af9c89c09e9f9135160b323
BLAKE2b-256 e3adb2d87578aba04a2625374a723dacc4d4c46c6a64d154de18b7cdde0a14a0

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