SPX often has 2 expirations on the same day.
Regards RTD Excel with TWS:
Everything works fine when I enter an expiration date for SPX with only 1 option contract expiring on that day, but when the AM contract expires on the same day I get:
"TwsRtdServer error: The contract description is ambiguous;......"
example: =RTD(tws.twsrtdserverctrl,,spx/CBOE/OPT/20231116/C/4350/USD//Bid)
How do you differentiate between the 2 different SPX expirations in excel? (What SPX symbol do I need to use for each different contract?)
Regards RTD Excel with TWS:
Everything works fine when I enter an expiration date for SPX with only 1 option contract expiring on that day, but when the AM contract expires on the same day I get:
"TwsRtdServer error: The contract description is ambiguous;......"
example: =RTD(tws.twsrtdserverctrl,,spx/CBOE/OPT/20231116/C/4350/USD//Bid)
How do you differentiate between the 2 different SPX expirations in excel? (What SPX symbol do I need to use for each different contract?)
Last edited: