Hi,
Looking to take a daily grab with the eikon API for 0#GC:
I assumed the same code I use for the Options chain (0#GC+) - where we write the options chain to a list and then pull teh fields. But with the futures prices I get blanks!
Hope you can advise
request = ek.get_data(instruments=['0#GC+'], fields=['X_RIC_NAME'])[0]
res2= True
while res2:
try:
dfs = [ek.get_data(instruments=[x], fields=['X_RIC_NAME','DSPLY_NAME'])[0] for x in request['Instrument'].tolist()]
res2=False
except Exception as E:
print (E)