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
21 1 1 1

Python API

I am trying to use the Eikon Python API to get streaming prices. The code is below: ek.set_app_key('…..(app key)…') streaming_prices = ek.StreamingPrices(instruments=[‘INTC.O’], fields = ['BID']) streaming_prices.open() string = streaming_prices['INTC.O']['BID'] Output: When I run this, I get an error saying: KeyError: "Field 'BID' not in Stream cache" However, I when change the instrument to something else that does not require a data feed subscription, like currency (e.g. [‘GBP=’]), the program works fine. Question: For streaming prices, do we necessarily need to get a paid subscription to the data feed before we can get pricing info? For example, if we’re using Excel to get price feeds, I think we can still get delayed feeds without a subscription.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiapi
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 @puri

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



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

Thanks,


AHS

Upvotes
Accepted
7.6k 15 6 9

@puri

It looks like the problem occurs because your subscription does not have permission to get a Real-Time tick by tick rate for INTC.O. I believe that if you change it to /INTC.O you should be able to get the BID but it's the delayed data.

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.

Upvotes
7.6k 15 6 9

@puri

You can also check the status by using streaming_prices.status.


status.png (12.7 KiB)
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.