Eikon API Python

Hello,
I am trying to use eikon API with Python. So I ran the Eikon application, I created an API key, I installed the Python library for the Eikon Data API and finally restart my computer. When I run the Eikon application and I execute the following code in Python:
import eikon as ek
ek.set_app_id('xxxxxx')
xxxxxx is the created API Key.
I get the following error message:
Timeout on checking port 9000
Timeout on checking port 36036
Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
Thank you for your help.
Best Answer
-
@h.k
It appears that you’re using a very old version of Eikon (v 4.0.31), which was released in 2015. This version of Eikon does not include Eikon API Proxy required to use Eikon Data APIs.
To use Eikon Data APIs you need to update your Eikon to v4.0.42 or higher. The latest version available at this time is 4.0.48.0
Answers
-
-
@h.k
I should add to the answer by @chavalit-jintamalit that it appears you're not using the latest version of Python library for Eikon Data APIs. Version 1.0.1, which is the latest version at this time, produces a deprecation warning for set_app_id method (which has been replaced with set_app_key).
You can check which version of eikon library you have installed by runningimport eikon as ek
I suggest you upgrade the version of eikon library to the latest before you continue troubleshooting connectivity problem.
ek.__version__
0 -
Hello,
Thank you for your reply. I upgraded the version of Eikon library and Eikon Desktop is running properly.
When I run the Eikon application and I execute the following code in Python:
import eikon as ek
ek.set_app_key('xxxxxx') with xxxxxx is the created API Key.
I get the following error message:
Error on checking port 36036 : HTTPConnectionPool(host='localhost', port=36036): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000000FE93E2F9B0>: Failed to establish a new connection: [WinError 10061]
Error on handshake port None : Failed to parse: localhost:None
Port number was not identifiedraise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.')
Thank you for your help.
0 -
@h.k
Please take a look at the troubleshooting suggestions on this thread. Could you use the Powershell script provided in the last comment on the thread and post the results here?0 -
Hello,
I used the Powershell script provided. Attached the output file.
Thank you
0 -
Thank you for the output.
From the output file, there is no Eikon process listening on TCP port 9000 and there is no Eikon process with the THOMSONREUTERS.EIKON.DESKTOPSXSSVC context which is an Eikon Proxy process.
I assume that your account doesn't have permission to use Eikon Data APIs. Please contact your Refinitiv account team or Sales team to verify it.
0 -
It is surprising, I use COM APIs with VBA. For some software programs, I need to configure on my computer proxy settings in order to give a specific host name. Can it be the same thing for Eikon Data APIs ?
Thank you
0 -
Eikon Data APIs connects to the Eikon process running on the local machine. That Eikon process is listening on TCP port 9000 (the default port). That Eikon process also creates a portInUse file used by Eikon Data APIs to verify the TCP port used by that process.
From the output, there is no Eikon process that is listening on TCP port 9000 and there is no portInUse file. This is why you can't use Eikon Data APIs on that machine.
Below is my output which can use Eikon Data APIs.
The Eikon process that owns this port (Local Port 9000) is Eikonbox.exe (16544).
0 -
The context for this process is THOMSONREUTERS.EIKON.DESKTOPSXSSVC.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 683 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛