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

I have using python. I need to get the real time streaming data.

import eikon as ek
import datetime

ek.set_app_key('mykey')


streaming_prices = ek.StreamingPrices(
    instruments = ['GBP=','JPY=', 'CAD='],
    fields   = ['CF_BID','CF_ASK','OPEN_PRC', 'CF_HIGH','CF_LOW', 'CF_CLOSE']
)
streaming_prices.open();
df = streaming_prices.get_snapshot(
    instruments = ['JPY=', 'CAD='],
    fields   = ['CF_BID','CF_ASK']
)
display(df)
streaming_prices.close();

This is the code I am using. but it takes too much time. Still, I am not getting any response. Guide me to get real-time streaming data.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apirefinitiv-realtimestreaming-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.

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

Hi @booze007

Do you have an instance of Eikon or Refinitiv Work running locally on the same PC or Mac as where you are running your script?

If so, have you tried fully shutting down the instance of Eikon and restarting it?

Also, when you generated your AppKey, did you tick the Eikon API checkbox?

Please provide further details on what does happen when you run the above - any console output?

If no console output, then please add the following and attach the output here as a .txt file - removing any secure information before sharing

import logging.config 
ek.set_log_level(logging.DEBUG) 
ek.set_app_key('<your app key>'


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.