Hi All! I am trying to use QC universe selection to get a list of delisted stocks (filtering out everything EXCEPT for the stock symbols that have been delisted), however it seems that no matter what I change it never works. I have copied the code I have right know, but I have changed it a ton of times. Any help would be greatly appreciated!

class test(QCAlgorithm):

def Initialize(self):
self.SetStartDate(2020, 1, 1) # Set Start Date
self.SetEndDate(2020, 1, 15) # Set Start Date

# In Initialize:
self.AddUniverse(self.CoarseSelectionFunction, self.FineSelectionFunction)

def CoarseSelectionFunction(self, coarse):
#sortedByDollarVolume = sorted(coarse, key=lambda x: x.DollarVolume, reverse=True)
filtered = [ x.Symbol for x in coarse if x.HasFundamentalData]
return filtered

def FineSelectionFunction(self, fine):
test = [x.Symbol for x in fine if x.SecurityReference.DelistingDate == self.Time]
#for x in fine:
#for x in fine:
# self.Debug(x.SecurityReference.DelistingDate)
return test[:10]