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. |
|
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 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions