For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
Hi @fredy.sarmiento, You can call the Eikon get_data call repeatedly, whenever you need the current real time price for an instrument. For 1 minute, this call can be placed in a one minute loop.
>>> while True: ... df,err = ek.get_data('EUR=', ['BID','ASK']) ... print(df) ... time.sleep(60) ... Instrument BID ASK 0 EUR= 1.108 1.1084 Instrument BID ASK 0 EUR= 1.108 1.1082
The new version of Python Data API (currently EAP) also allows subscribing to streaming data.
Hi @Gurpreeet
It worked once but now I am getting an error message:
"NameError: name 'time' is not defined"
Also, I was trying to get the Close Price but I got NaN.
My eikon version is
1.1.2b0
Thanks for your help
You will have to import the time module in python:
import time
You can search/use the "Data Item Browser" within Eikon to see the list of fields available to you.
My objective is to replicate and calculate some technical analysis indicators, or even better I am not sure if I can directly request technical Analysis indicators?
Many thanks
Fredy