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
16 3 6 12

why no prices?

why am I not getting quotes/prices for this request? the markets are open...

python snippet:

streaming_prices = ek.StreamingPrices(

instruments = ['CAD=',"ESU1", "ESc1","SPXWr212133500.U"],

fields = ['CF_BID','CF_ASK','OPEN_PRC', 'CF_HIGH','CF_LOW', 'CF_CLOSE']

)

streaming_prices.open()

response:



InstrumentCF_BIDCF_ASKOPEN_PRCCF_HIGHCF_LOWCF_CLOSE0CAD=1.24751.24761.24631.24761.24371.24621ESU1<NA><NA><NA><NA><NA><NA>2ESc1<NA><NA><NA><NA><NA><NA>3SPXWr212133500.U<NA><NA><NA><NA><NA><NA>
eikoneikon-data-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

@opsp

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your 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
18.2k 21 13 21

Hi @opsp

The code is valid:


ahs.jpg


Can you confirm if you have enough permission to subscribe to these instruments?

ahs2.jpg


ahs.jpg (83.1 KiB)
ahs2.jpg (71.9 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.

Upvotes
16 3 6 12

to be clear, I get prices for CAD, but not the ES futures...they should be live

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
16 3 6 12

so it's confusing... your slightly different call works. (get_data vs get_snapshot after .streamingprices


any thoughts? is one not realtime?


thx

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.

Hi @opsp

I demonstrated that I can use both StreamingPrices() and get_data()

Both of them is realtime, StreamingPrices is a streaming request so you will get subsequence updates as well.

get_data() is a snapshot request, one request gets one response.


Please follow the code in 2nd picture and check the error return value as suggested.

This is to confirm if you have enough permission?


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.