Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 2 2 3

Eikon Streaming Data API returning NA

I have been the Eikon's Streaming Data API for the past year and a half when it suddenly started returning <NA> for all the symbols and attributes a few days ago. The following test code exhibits the same behavior:


import eikon as ek
ek.set_app_key(appKey)
ek.__version__
sp = ek.StreamingPrices(instruments = ['XOM'],
                        fields = ["CF_BID","CF_ASK",'CF_LAST', 'TRDPRC_1', 'HST_CLOSE'])
sp.open()
sp.get_snapshot()

The response is:

Instrument  CF_BID  CF_ASK  CF_LAST  TRDPRC_1  HST_CLOSE
0        XOM    <NA>    <NA>     <NA>      <NA>       <NA>


The eikon version I am using is 1.1.14

Please advise.

Thanks,

Matt


eikon-data-apipythonstreaming-prices
icon clock
10 |1500

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

Hello @matt.edwards

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

@matt.edwards

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

Hello @matt.edwards ,

From my quick test, the same code works as expected, so the code is valid.

The issue can be local environment or user permissions.

Any changes in either of these, that you can think of?

Did you have a chance to restart everything cleanly, your machine, Refinitiv Workspace/Eikon, re-run the code? Does the issue persist?

I would try to turn on logging in code, to see if you can learn more:

import eikon as 
ek.set_log_level(1)
ek.set_app_key('<app key>')

and see what you learn of the issue.

I would verify, if you see this same content properly in Eikon/RW Excel. If you do not, I would contact Eikon support to verify your user id permissions.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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