Eikon API it works in Rstudio but not Rstudio cloud

error in curl::curl_fetch_memory(url, handle = handle) : Failed to connect to localhost port 9000: Connection refused @Zhenya Kovalyov

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    To retrieve the data, Eikon Data APIs need to connect to the Eikon process running on the same local machine through localhost:9000 connection. It works on the local machine because you have run Eikon on the same machine that runs RStudio, as shown below.

    image

    On the other hand, when using RStudio Cloud, you are connecting to a different machine (or container) in Cloud and that machine doesn't have the Eikon installed. Therefore, it doesn't have the running Eikon process, as shown below.

    image

    This is why you can't use Eikon Data APIs on the RStudio Cloud. To make it work, you need to have Eikon Data API Proxy running on that remote machine in Cloud which is not possible because Eikon Data API Proxy only supports Windows and MacOS.

    In conclousion, I think that Eikon Data APIs doesn't support this kind of usage.

    If you need to use RStudio Cloud, you may consider using other solutions such as Elektron Data Platform, TRKD, DSS, and TRTH which support REST API.

    For more information about these products, please contact your Refinitiv Account team or Sales team.

Answers