Hello. I'm new to the topic of trading so maybe I use some terms in a wrong way, please correct me if so. I googled and I think this is the most popular forum about Interactive Brokers API. I'm loading historical bar data via IB Gateway and I use CONTFUT security type for it. In the parameter "whatToShow" I pass "TRADES". As I understand I get back-adjusted continuous contract. Is there a way to get historical data for not back-adjusted continuous futures contracts, I mean with gaps?
Yes, that is possible and consists of two steps: Step 1. Get a list of all historical contracts of the instrument you are interested in. Use reqContractDetails() for this. Step 2. For each of the contracts, request and download the historical data. Use reqHistoricalData() for this.
Thank you for your answer. I was hoping that there is a way to load not back-adjusted continuous futures contract with one request, like in IQFeed for example, but there is no way to do it in IB as I understood.