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

Uploaded Source

File details

Details for the file tradingeconomics-0.2.17.zip.

File metadata

  • Download URL: tradingeconomics-0.2.17.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.17.zip
Algorithm Hash digest
SHA256 4a0ef28ec06ffa1dae638c8b681d8cda129973280a21602bf1453e258fa369ed
MD5 276508e1e043cdc4354362271118c9cb
BLAKE2b-256 dbdaf093fca81f5b78fd24c517b6a1614d040814073cee9042e8ddba9fac653f

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