Open josefstr opened 6 years ago
I don't think the history portion of his code ever worked.
Did anybody get a resolution to this? I have had some very mixed results with getting data. Usually it just hangs. My request is - fut_contract = ibConn.createFuturesContract("GF", expiry="201806") [#321] Error validating request:-'bm' : cause - Please enter exchange. any ideas?
@josefstr did u manage to solve this issue? can u share a code example for getting historical data? highly appreciated!
@asnatm I didn't start using this tool. So I cannot help you out.
@asnatm I had a rough solution to this. Do a requesthistoricaldata with no contracts created first so that it prompts for market data then create the contracts, put a sleep for 10 seconds then requesthistoricaldata again.
I'm running the history.py example with
contract = ibConn.createStockContract("AAPL", exchange="NYSE")
orcontract = ibConn.createFuturesContract(symbol="FDAX", exchange="DTB", currency="EUR", expiry="201709")
I don't get any data, I just get the following errors:
I'm connecting to an advisor account.