Here is the code. It gets the data but without dates. How should I write a query in python.
df, err = ek.get_data(
instruments = ['CLc1'],
fields = ['TR.CLOSEPRICE(Frq=D,SDate=2000-12-31,CALCMETHOD=CLOSE,EDate=-1M)']
)
Hi @rsharan
You can try this code: