SDMX in EViews is a webapp that allows you to retrieve datasets or series in EViews from different SDMX providers.
Currently, the app is supporting Insee, ECB, Eurostat, Worldbank and Norges Bank data natively.
Requests to Quandl, BLS, FRED, OECD and Deutsche Bundesbank are also supported.
The complete list of supported providers is available here.
Alternatively, SDMX requests to others providers can be made here.
Importing SDMX data in EViews becomes as easy as:
%url = "http://sdmx.herokuapp.com/ecb/series/EXR.A.E2.USD.EN00.A"
import(t=html) %url colhead=2 namepos=first
You can even use the subroutine:
include "./subsdmx.prg"
call sdmx("ecb","EXR.A.E2.USD.EN00.A","","usdeer19")
The app is transforming SDMX flows from providers website in an HTML table that can be read by EViews. The app provides you with a stable URL that you can use in your EViews code.
Downloading data to EViews is done in two steps:
url
of the HTML table containing the data.import(t=html) url
An url looks like:
http://sdmx.herokuapp.com/provider/resource/resource_id
For instance eurostat
: for data from Eurostat. Complete list of providers is here.
dataset
: for retreiving a dataset.series
: for retreiving a timeseries.There are two ways to get the id of your resource:
http://sdmx.herokuapp.com/provider/dataflow
http://sdmx.herokuapp.com/provider/dataflow/dataset_id/
The app allows to apply the standard SDMX filters, namely:
A filter is applied by adding at the end of the url: ?name_filter=value_filter
Multiple filters can be used by separating them by &
There are four filters to limit the number of observations retrieved:
?startPeriod=2004
?endPeriod=2010Q3
?firstNObservations=12
?lastNObservations=24
%url = "http://sdmx.herokuapp.com/ecb/series/EXR.A.E2.USD.EN00.A?startPeriod=2000&endPeriod=2010"
import(t=html) %url colhead=2 namepos=first
"A dataset can be described as a container of ordered observations. Observations are classified by dimensions such as country, age, sex, and time period. Observations may be clustered into series, in particular, time series."
Subgroups of data can be retrieve by restricting dimensions (only monthly data for instance). It can be done by adding a filter at the end of the url.
http://sdmx.herokuapp.com/...?name_dimension=code_dimension
To apply the filter, you need:
http://sdmx.herokuapp.com/provider/dataflow/dataset_id
%url = "http://sdmx.herokuapp.com/insee/dataset/ipch-2015-fr-coicop?freq=M"
import(t=html) %url colhead=2 namepos=first
Data from others SDMX providers can be retrieved using:
http://sdmx.herokuapp.com/?req='sdmx_url'
The app also supports requests to Fred, Quandl, the Bureau of Labor Statistics, the OECD and the Deutsche Bundesbank.
The url to use is:
http://sdmx.herokuapp.com/provider(/api_key)/resource_id
fred
: for data from Fred.quandl
: for data from Quandl.bls
: for data from the BLS.buba
: for data from the Deutsche Bundesbankoecd
: for data from the OECD
The code is available on Github.
The app is written in nodeJS and use Express web framework.
The HTML table technique is borrowed from the wonderful Widukind project.