Python Eikon API

Hi.

I have Eikon application version 4.0.42 installed on my computer. I followed the instruction about how to use Eikon API but received following error;

Warning: file .portInUse was not found. Is Eikon Scripting Proxy running? Defaulting to port 36036

"EikonError: 'Error code 401 | Eikon Proxy not installed or not running. Please read the documentation to know how to install and run the proxy. '"

I tried to download the Eikon Proxy but the installation package can't be opened. I tried to open it in three different PC but all had the same result.

The following is my script:

import eikon as ek ek.set_app_id('XXX')

ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')

Does anyone have any idea what's going on here? Thanks in advance.

Best Answer

Answers

  • See my comments from Nov 27th on the following thread, which may help you figure out what's wrong.
    https://community.developers.refinitiv.com/questions/21391/log-in-on-eikon-desktop-app-eikon-api-proxy.html

  • Hello Alex. Thanks for sharing your comments and it did help. But I still can't get my Python script run. It shows the following message at the beginning "Warning: file .portInUse was not found. Is Eikon Scripting Proxy running?". And I can't filed named ".portInUse" and the folder named "Eikon API Proxy" either. Should I reinstall the Eikon?

  • It can't hurt to reinstall Eikon. Though I would suggest first simply rebooting the box.

  • Hi Alex, I am working with a user having the same error message: "Warning: file .portInUse was not found. Is Eikon Scripting Proxy running?" We do not see the %appdata%\thomson reuters\Eikon API Proxy folder being created. He is running the latest Eikon 4.0.42144. Rebooted machine and reinstalled Eikon but did not help. Any advice on why the Eikon API Proxy folder is not being created? Here is a screenshot of the error: pastedimage.png

  • Thanks @Vera.Wong.

    @Alex, I raised case (06186205) on the client's behalf. On my own PC, I noticed that the ".portInUse" file is being created at:

    \AppData\Roaming\Thomson Reuters\Eikon API Proxy\.portInUse

    The client does not have a "Thomson Reuters" folder in "Roaming", only in "Local". Does it have anything to do with this?

  • Thank you Olivier. I am looking forward the new version!

  • Hi @gillian.thompson,

    The new Python library (0.1.11) is now available on PyPi. Could you please give it a try and see if it solves your issue?

  • hello,

    data, error=ek.get_data('EUR=', ['TR.ASKPRICE.Date', 'TR.ASKPRICE','TR.BIDPRICE'], parameters={'SDate':'2018-06-20', 'EDate':'2018-06-22'})

    How to specify the Hour/min/sec on the SDate in order to retreive the BID/ASK of EUR at a specific time (secondes).

    Thank you,

  • Thanks for posting your question on a separate thread. This makes it easier for the moderators to follow it and for anyone who may have similar question in the future to discover it. The answer has been posted on the new thread you started.