Hello,
I'm trying to get the real-time (live) data of Bid or Ask quote price and plot the data via python.
But when I use the loop in python, the speed of getting real-time data is too slow.
It may take 1 second for each price.
Therefore, it can't catch up on the stream/variation of the price in real-time.
I wanna get data at the same speed as the actual price changes.
Here is the simple example code.
import eikon as ek
ek.set_app_key('~~~~')
while True:
df, err = ek.get_data(
instruments = ['BTC='],
fields = [SEC_ACT_1'])
print(df['SEC_ACT_1'].iloc[0])
I think the speed of getting data is slower than the one of the function 'RtGet()' in Excel.
Then, how to improve the speed of getting real-time (live) data via Eikon API?