You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I don’t know why, but I can never get real-time data and always get "NaN" as the value. I also get the error message: "Requested market data is not subscribed. Delayed market data is available." However, I’ve subscribed to "OPRA (US-Optionsbörsen) (NP, L1)".
I just want a script that retrieves the option chain for all expiration dates so I can save it in my database (right now, I’m only using Yahoo Finance).
Error 354, reqId 3: Requested market data is not subscribed.Delayed market data is available.SPY NOV 22 '24 590 Call (SPY 241122C00590000) /TOP/ALL, contract: Option(symbol='SPY', lastTradeDateOrContractMonth='20241122', strike=590, right='C', exchange='SMART')
Error 354, reqId 3: Requested market data is not subscribed.Delayed market data is available.Error&BEST/OPT/Top&BEST/OPT/Top
strike: 590 C/P: C nan
Error 354, reqId 4: Requested market data is not subscribed.Delayed market data is available.SPY NOV 22 '24 590 Put (SPY 241122P00590000) /TOP/ALL, contract: Option(symbol='SPY', lastTradeDateOrContractMonth='20241122', strike=590, right='P', exchange='SMART')
Error 354, reqId 4: Requested market data is not subscribed.Delayed market data is available.Error&BEST/OPT/Top&BEST/OPT/Top
strike: 590 C/P: P nan
The text was updated successfully, but these errors were encountered:
If the error message is complaining about "not subscribed" market data, then the correct market data just isn't available on the account for the request. Check the market data IBKR settings page for more bundles or data packages to use.
All contracts for requests should be run through qualify() first so the exact contract id values are populated.
If the goal is to find the full option chain, then reqContractDetails() with a partial date would return more matching values for the full date range.
I just want a script that retrieves the option chain for all expiration dates
Then reqTickers() doesn't help because reqTickers() provides live market data (and reqTickers() is mostly just a wrapper around reqMktData()).
What you would want is reqContractDetails() to fetch a list of option contracts for a partial contract specification (just provide a date of 202412 and it'll return for every date in the month, but since SPY has daily expirations, you may want to request dates sequentially).
Hi,
I don’t know why, but I can never get real-time data and always get "NaN" as the value. I also get the error message: "Requested market data is not subscribed. Delayed market data is available." However, I’ve subscribed to "OPRA (US-Optionsbörsen) (NP, L1)".
I just want a script that retrieves the option chain for all expiration dates so I can save it in my database (right now, I’m only using Yahoo Finance).
Output:
Expiration: 20241122
The text was updated successfully, but these errors were encountered: