What would be the most efficient way to retrieve multiple historical economic indicators f.e. inf...

What would be the most efficient way to retrieve multiple historical economic indicators f.e. inflation and gdp for multiple countries through Eikon Python API?

Best Answer

  • [Deleted User]
    [Deleted User] Newcomer
    Answer ✓

    Hi @oberolis,


    Looking at previous posts (that you may find here and here), I found that you can get such GDP data like this:


    ek.get_timeseries(['aBDXGDP/CA', 'aBDXGDP/C',
                       'aUSXGDP/C', 'aUSXGDP/CA',
                       'aJPXGDP/C', 'aJPXGDP/CA'],
                      interval='yearly', start_date='1999-12-31')


    Changing the two-letter country code as per this site. Note that I used two rics per country, that's because some of them need '/CA' at the end, others need '/C'; if you enter both, only the right one will give an output.


    If you are looking for other Economic Indicators, you can repeat the process above with each of the indicators. E.g.: for inflation:


    1. I looked for the Economic Indicators' App on Refinitiv Workspace


    See Pic 1 bellow


    2. Then I selected (a) the country and (B) indicator of choice:

    See Pic 2 bellow


    I can then see (C) the RIC to use. In this e.g. of Japan's CPI Inflation, it's 'A' followed by the acronym (here: 'JP') then 'CCORPE/A'.


    Using the search box at the mid-left, you can enter other such RICs to see dropdowns and check each of your RICs (e.g.: US version of the Inflation above):

    See Pic 3 bellow


    Then you may add it to your request - e.g.:


    ek.get_timeseries(['aBDXGDP/CA', 'aBDXGDP/C',
                       'aUSXGDP/C', 'aUSXGDP/CA',
                       'aJPXGDP/C', 'aJPXGDP/CA',
                       'aUSCCORPE/A'],
                      interval='yearly', start_date='1999-12-31')


Answers