Skip to content

Cannot fetch options for indexes. #2

Description

@vspinu

Thanks for the amazing initiative!!

I am experiencing issues fetching anything for SPX. For SPY the weekly expirations are not available even though they are show in option chains:

╰─$ ibkr options quotes --exchange=AMEX SPY 20260428
Failed to fetch option quotes for 'SPY' exp=20260428 via profile 'live': 'NoneType' object has no attribute 'secType'
╰─$ ibkr options quotes SPY 20260428                                                                                                                                                                              
Failed to fetch option quotes for 'SPY' exp=20260428 via profile 'live': Expiration '20260428' not available. Available: ['20260601', '20260605', '20260609', '20260612']...
╰─$ ibkr options quotes SPX 20260428                                                                                                                                                                              
Error 200, reqId 1: No security definition has been found for the request, contract: Stock(symbol='SPX', exchange='SMART', currency='USD')
Unknown contract: Stock(symbol='SPX', exchange='SMART', currency='USD')
Failed to fetch option quotes for 'SPX' exp=20260428 via profile 'live': 'NoneType' object has no attribute 'symbol'
╰─$ ibkr options quotes --exchange=CBOE SPX 20260428                                                                                                                                                              
Error 200, reqId 1: No security definition has been found for the request, contract: Stock(symbol='SPX', exchange='CBOE', currency='USD')
Unknown contract: Stock(symbol='SPX', exchange='CBOE', currency='USD')
Failed to fetch option quotes for 'SPX' exp=20260428 via profile 'live': 'NoneType' object has no attribute 'symbol'
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions