Hi!

I have been using the OptionChainProvider.GetOptionContractList method for pulling a list of contracts for index options. This function would return a list of all available option contracts for any given underlying and time 

e.g.

self.OptionChainProvider.GetOptionContractList(canonical_symbol,TIME)

would return a list of all possible contracts with the underlying associated with the canonical_symbol and TIME.

 

However, since a recent update, this method only works ~20% of the time, and the other times it actually returns an empty list! It should never be returning an empty list in my case (as I am looking at SPX weekly contracts) because there is always a non-zero amount of index option contracts on SPX weekly contracts. So there is some sort of issue that appeared only within the past 2 weeks or so that has broken this method.

Is there a workaround for retrieving a list of all available option contracts for a given underlying and time WITHOUT subscribing to the options beforehand? This method was perfect, but now it is clearly broken and needs a substitute.

Attached is a backtest demonstrating the issue! Once cloned, run the algorithm, and in the logs you will see that a majority of days don't work, however, occasionally the method does what it is supposed to.