Sorry if this is not an answer, but I wanted to ask for help. I am trying to do this:
option_chain = ib.reqSecDefOptParams(
1, underlying_symbol, '', underlying_security_type, conId)
But I'm getting the error TypeError: IB.reqSecDefOptParams() takes 5 positional arguments but 6 were given
. Why does it recognize 6 arguments?