Hello,
I'm using the below get_data formula:
lst_dt = (datetime.now() - timedelta(days=1)).strftime("%Y-%m-%d")
fst_dt = (datetime.now() - timedelta(days =5)).strftime("%Y-%m-%d")
list_rics = ["1SB2175E2"]
list_fields_1 = ['TR.AccumulatedVolume.date','TR.AccumulatedVolume']
print("load data from",fst_dt,"to",lst_dt)
df_a,e = ek.get_data(list_rics,list_fields_1, {'SDate':fst_dt,'EDate':lst_dt})
df_a = df_a.rename({'TR.AccumulatedVolume.date':'Date'},axis=1)
df_a = df_a.rename({'Accumulated Volume':'Volume'},axis=1)
df_a = df_a.rename(columns = {"Instrument":"Reuters Ticker"})
print(df_a)
And getting the below result:
Reuters Ticker Date Volume
0 1SB2175E2 2022-03-23T00:00:00Z 49
It suggests that my date filter is not working, as 23rd of March should be excluded as it is before my "SDate" and there should be something for the 5th of April (volume was 100 lots on that day which matches my "EDate").
How to use correctly those date filters?
Thanks in advance.
Adding as well a second question:
https://www.theice.com/marketdata/reports/13
As seen in the report reachable on this link, a good part of the volumes in options are going through blocks. Can you please explain to me how to get those volumes? What fields should I use? Thanks.