Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by thseol · May 13, 2020 at 08:33 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikon

Can I use Eikon API in Colab.research.google.com?

import eikon as ek

ek.set_app_key('826xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')


2020-05-13 08:26:48,497 P[208] [MainThread 140443013973888] Error on checking port 9000 : HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbb4620c978>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2020-05-13 08:26:48,499 P[208] [MainThread 140443013973888] 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 0x7fbb4620cdd8>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2020-05-13 08:26:48,503 P[208] [MainThread 140443013973888] Error on handshake port None : Failed to parse: localhost:None 2020-05-13 08:26:48,510 P[208] [MainThread 140443013973888] Error: no proxy address identified. Check if Eikon Desktop or Eikon API Proxy is running. 2020-05-13 08:26:48,511 P[208] [MainThread 140443013973888] Port number was not identified, cannot send any request 2020-05-13 08:26:48,512 P[208] [MainThread 140443013973888] Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.
---------------------------------------------------------------------------
EikonError                                Traceback (most recent call last)
<ipython-input-19-822979004c45> in <module>()
      1 import eikon as ek
      2 
----> 3 ek.set_app_key('826xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')


2 frames


/usr/local/lib/python3.6/dist-packages/eikon/Profile.py in check_profile(self)
    369             # port number wasn't identified => raise EikonError exception
    370             self.logger.error('Port number was not identified.\nCheck if Eikon Desktop or Eikon API Proxy is running.')
--> 371             raise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.')
    372 
    373 

EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · May 13, 2020 at 08:35 AM

Hi @thseol

To use the Eikon Data API you have to have a locally running instance of Eikon or Refinitiv Workspace - i..e on the same PC as where you are executing any EDAPI script.

Comment
thseol

People who like this

1 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
azzopardic · Dec 06, 2021 at 08:08 AM 0
Share

Hi @umer.nalla ,

I am currently having a similar issue. I am trying to run a Python notebook that connects to Eikon API and collects data on news stories. The connection is successful when the code is run on other IDEs such as JupyterLab and Azure Data Studio, but it seems the same doesn't happen when using Google Colab. I have a running Refinitiv Workspace every time I run the code, but the issue remains.

2021-12-06 07:32:58,900 P[583] [MainThread 140156271007616] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2021-12-06 07:32:58,905 P[583] [MainThread 140156271007616] Error on handshake url http://127.0.0.1:None/api/handshake : UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.")
2021-12-06 07:32:58,908 P[583] [MainThread 140156271007616] Error on handshake url http://127.0.0.1:None/api/handshake : UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.")
2021-12-06 07:32:58,911 P[583] [MainThread 140156271007616] Port number was not identified, cannot send any request

Is there something that I am missing please?

avatar image
REFINITIV
umer.nalla ♦♦ azzopardic · Dec 07, 2021 at 11:44 AM 0
Share
Hi @azzopardic

When posting on the Forum it is recommended that you post a new Query when the subject matter has changed somewhat from the original.

This will make it more likely your query will be noticed by all our forum moderators and responded to in a more timely manner. It also helps other developers with similar issues to yourself.

In terms of your question, my understanding is that Google Colab is a cloud computing-based service - therefore the code is not executing locally on your PC - rather it is executing on a Google server somewhere.

I have not tried Azure Data Studio - but certainly, Jupyterlab notebooks normally execute locally.


avatar image
REFINITIV
Answer by pimchaya.wongrukun01 · May 13, 2020 at 09:05 AM

Hello @thseol

Please see Eikon Data API(Python) Troubleshooting | Refinitiv which explains how to solve this problem thoroughly.

Comment
thseol

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
16 People are following this question.

Related Questions

What other parameters can be used with the statement pertaining to Corporate Actions data such as Stock Splits?

Download API Proxy Python for Windows.

Retrieve Commodity Flows data using Python API

How to get all investors for a list of stocks, historically with the python API

Trying to fetch Close Bid Price for CMO tranche from Python

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges