Hello,

I am having a hard time figuring out how to solve this runtime error I get which states, “No option type exists for underlying SecurityType: Option at on_securities_changed”

Can someone in the community assist me with this error or give me an idea how I can make sure a universe of symbols have options?

Here is the my def on_securities_changed:

def on_securities_changed(self, changes):
	for added in changes.added_securities:
	option_contracts = self.option_chain_provider.get_option_contract_list(added.Symbol, self.time)
	if len(option_contracts) > 0:
		option = self.add_option(added.Symbol)
		option.set_filter(-5, 5, timedelta(30), timedelta(60))
		self.option_trades[added.Symbol] = None
	else:
		pass