Retrieving QQQ call option IV from API

General Question

Hi all!

I am currently using IB Gateway API and attempting to retrieve market data for an ATM call option for QQQ, expiring tomorrow. I keep getting an error that suggests my market subscriptions are preventing me from pulling the data. Here are my current data subscriptions, I am subscribed to OPRA live data as well as NASDAQ exchange data, so not sure what else I need to add, if any:

https://preview.redd.it/t5ca69hu52ag1.png?width=1812&format=png&auto=webp&s=cf34acfb29cab691dc2b1a1e962fb11d788794ee

Here is my code and the error I am getting (targetContract here is an Option object):

https://preview.redd.it/0v8xe75862ag1.png?width=2424&format=png&auto=webp&s=eaee0e530540a66567400326accd681d3f0f4350

https://preview.redd.it/gfhm1iqf62ag1.png?width=2424&format=png&auto=webp&s=4c7eacab81deb45315da688f2fd936af0d6318cc

Is this the best way to go about retrieving options contract data (in particular IV) and if so is this simply a market data subscription issue? Thanks for any help, new to all of this so battling the learning curve as we speak

Posted Dec 29, 2025, 3:02 AM UTC

01
Loading comments…