Hi,
I am looking for a method to find all of the options volume that was traded yesterday (across all strikes for all expiries) on the children of the ric 0#CFI2+. As in to answer the question 'how many EUA options traded yesterday in total?'.
For futures I have used this method:
all_rics = ['CFI2' + 'c{}'.format(x) for x in range(1, 17)] rd.get_history(universe = all_rics, fields = ['ACVOL_UNS'], interval = 'daily' , start = (datetime.today() - timedelta(days=2)).strftime('%Y-%m-%d ') + '00:00:00', end = (datetime.today() - timedelta(days=1)).strftime('%Y-%m-%d ') + '00:00:00', )
I understand that I could do it specifying all the individual contracts manually but this is something I would really like to avoid. Any help would be much appreciated.
Thanks.