This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
cannot pull historical options data (error 162) #601
Unanswered
jdrylewicz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been trying to get historical SPX options data but keep running into issues:
I have pulled an option using the option chain as defined in the ib_sync notebook:
option = Option(conId=627487877, symbol='SPX', lastTradeDateOrContractMonth='20230817', strike=4015.0, right='C', multiplier='100', exchange='CBOE', currency='USD', localSymbol='SPX 230818C04015000', tradingClass='SPX')
I then try to use the reqHistoricalData method:
ib.reqHistoricalData(option, endDateTime='', durationStr='1 D',barSizeSetting='1 min', whatToShow='TRADES', useRTH=True, keepUpToDate=False)
I get the following error:
I can pull data normally for US stocks / futures and get the option chain to work as expected. I would love to hear from the community on how to get around this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions