Python API to retrieve historical data of economic events

I am using the python api to retrieve historical data of Economic Events using the get_history() method but i cant find the fields which it will take to retrieve different columns such as Prior , Actual , Revised etc..

Any reference material will be very helpful.

Answers

  • Gurpreet
    Gurpreet admin

    Hello @avinash.sonde

    These type of content questions are best asked at LSEG MyAccount. A content expert can advise on the data. On this Q/A forums we can only answer technical questions related to the APIs.

  • Hi @Gurpreet

    Thank you for checking. I understand, but none of the Specialists are API experts and we have similar cases in the past where the Developers have helped out. Could you please advice?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @avinash.sonde

    If you don't specify the fields parameter, it will return all supported historical real-time fields.

    df1 = ld.get_history(universe=["JPCOFF=ECI"])
    df1
    
    image.png

    I assume that for this RIC, these values are Actual.

    You need to contact the content support team via MyAccount to verify if we have historical data for other fields.

  • Hello,

    It would be great if the other event fields (expected, prior and revised ) were also added in the API. Could you please confirm?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    The API can retrieve data from the server or endpoint.

    If the server don't have data, the API can't retrieve it.

    You need to contact the content support team via MyAccount to verify if we have historical data for other fields.

  • Hello, client says that the current api provides just the values for any economic event (for example US CPI) and I have faced problems with fetching events data in excel through workspace also, but earlier we were able to pull the below event fields in Excel through Eikon. If this can be added into the API, it will be best, if not please add the ability to pull them in excel through Workspace just as in Eikon. 

    Local Time : ACT_VAL
    Period : FCAST_PRDReuters Poll : RTR_POLLActual : ECON_ACTPrior : ECON_PRIORRevised : PRIOR_REVMin : FCAST_LOWMax : FCAST_HIGHCount : FCAST_NUMSmart Economics : FCAST_SESTPredicted Surprise : FCAST_ACRY

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @avinash.sonde

    For content questions, please contact the helpdesk or Workspace support team directly.