Get es futures historical data #562
Replies: 2 comments
-
from ib_insync import IB, Forex, util, Future
util.startLoop()
ib = IB()
ib.connect(clientId=69)
contract = Future('ES','20230115','CME')
ib.qualifyContracts(contract)
Error 200, reqId 163: No security definition has been found for the request, contract: Future(symbol='ES', lastTradeDateOrContractMonth='20230115', exchange='CME')
Unknown contract: Future(symbol='ES', lastTradeDateOrContractMonth='20230115', exchange='CME') So your contract definition is incorrect. |
Beta Was this translation helpful? Give feedback.
-
Since I was looking into using ib_insnyc with Futures in the last days, a comment: The historical data simply is not available, it is removed by IBKR once the options expire. You can try for yourself:
See also a similar answer on Stackoverflow https://stackoverflow.com/questions/56819763/no-security-definition-has-been-found-for-the-request-future-option-python |
Beta Was this translation helpful? Give feedback.
-
Hi, trying to get es contract historical data with no success. This is what i tried:
I'm not sure what am i doint wrong as i keep getting errors such as :
: No security definition has been found for the request, contract: Future(symbol='ES', lastTradeDateOrContractMonth='20230115', exchange='CME')
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions