It seems to find a Python script to download Open High Low Close market data is tough. Backtrader seems to be abandoned. From my past learning, I thought I should purse a C++ or Java solution via this site
To see how I progress with these coding sample. sign up to my daily newsletter
In order to work with this, I will assume you have a strong understanding of either C++ or Java. I am c
hoosing Java for now as this site has some excellent examples to use the gateway instead of the Trader Workstation software. TWS forces you to shut down your connection to IBKR for 15 minutes around 11:45 PM. You don’t have to worry about this with the gateway so I choose this for this advantage.
Here is an example set of tutorials you can use to download OHLC data with real time data.
I have listed c++ or Java for Linux. You can find Windows example on this site if you wanted here as well.
Interactive Brokers topics