I'm looking to get all symbols in a list that are/will be delisted on a given day through the event handlers. The data.Delistings class looks like what I need to use but I can't get the right format to be returned in python.

Any input is appreciated here.

 

def OnData(self, data): delisted_list = [] delisted_list = data.Delistings.Keys # I want to get a list of the unique identifier e.g., GOOCV VP83T1ZUHROL for item in delisted_list: # do something with the item

 

Author