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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonapi
icon clock
10 |1500

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

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea