Unable to download data using eikon api
Hi,
when I try to connect to eikon via the api to run a `get_timeseries()`
I get the below error.. I have my eikon up and running and the app_key enabled, so not sure what's causing this issue.
=========================================================
2022-10-25 10:41:02,524 P[23332] [MainThread 6760] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': '2580e18557624af8a1ab810fc5012449982e0407'}
params = None
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] HTTP request failed: TypeError("send() got an unexpected keyword argument 'timeout'")
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Error on checking proxy url http://127.0.0.1:9060/api/status : TypeError("send() got an unexpected keyword argument 'timeout'")
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Warning: file .portInUse was not found. Try to fallback to default port number.
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Try defaulting to port 9000...
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2022-10-25 10:41:02,525 P[23332] [MainThread 6760] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': '2580e18557624af8a1ab810fc5012449982e0407'}
params = None
Best Answer
-
Sorry about the issue that you are facing.
Please check the version of Eikon and httpx that you are using.
For more information, please refer to the following questions:
I hope that this information is of help
0
Answers
-
eikon==1.1.2
httpx==0.23.0
0 -
downgraded httpx to 0.20.0. Still same issue0
-
@sumit
Please try to update the eikon library to the latest version.
0 -
0
-
Went through the steps in here: https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv
This is what I see on my SxS.... log file
However, in my python console, the log I see is:-
So wonder why it's not targetting the 9060 port
2022-10-25 11:23:50,835 P[29044] [MainThread 39532] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2022-10-25 11:23:50,836 P[29044] [MainThread 39532] Error on handshake url http://127.0.0.1:None/api/handshake : TypeError("send() got an unexpected keyword argument 'timeout'")
2022-10-25 11:23:50,836 P[29044] [MainThread 39532] Error on handshake url http://127.0.0.1:None/api/handshake : TypeError("send() got an unexpected keyword argument 'timeout'")
2022-10-25 11:23:50,836 P[29044] [MainThread 39532] Port number was not identified, cannot send any request0 -
My concern is about the following error:
TypeError("send() got an unexpected keyword argument 'timeout'")
According to the previous discussions, it relates to the incompatible version of Eikon Data API and httpx.
0 -
so it looks like if I upgrade my eikon api (from pypi) - the httpx gets upgraded to 0.23.0
Also another funny thing is- if I install the latest eikon api i.e. 1.1.16 from pypi and if I issue a
print(ek.__version__)
it shows 1.1.13
Please advise
0 -
On my machine, it shows 1.1.16.
You may need to check the site packages and user site packages to make sure that eikon 1.1.16 was installed in the right location.
0 -
Thanks a lot!! that worked. It was indeed a old package sitting in the site-package folder
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛