I'm running into an issue trying to call self.AddOptionContract() for anything traded after hours, like SPY and IWM. Here's the log for a couple trades I'm trying to simulate:

2020-04-06 16:00:37 : No data loaded for SPY 200409C00267000 because there were no tradeable dates for this security. 2020-04-06 16:00:43 : No data loaded for UVXY 200417P00047000 because there were no tradeable dates for this security. 2020-04-06 16:02:15 : No data loaded for IWM 200515P00107000 because there were no tradeable dates for this security.

As far as I can tell, this data exists in QC from AlgoSeek, but AddOptionContract() doesn't seem to add the underlying or contract with extendedMarketHours set to True (source).

Author