Hello, I'd like to be able to check the expiration date(s) of the option(s) I'm currently holding.

I have tried the below code and a few other things but I've had no luck yet. 

def OnData(self, slice): expiries = [x.Value.Expiry for x in self.Portfolio if x.Value.Invested and x.Value.Type==SecurityType.Option]