The sum of the trading volume of each tick does not equal the total trading volume of the CME//intraday What is the reason? #Code volume+= int(size)
Do not trust IB's volume. https://interactivebrokers.github.io/tws-api/historical_bars.html Notice the sentence: IB's historical data feed is filtered for some types of trades which generally occur away from the NBBO such as combos, block trades, and derivatives. For that reason the historical data volume will be lower than an unfiltered historical data feed. I don't know why they filter it, but they do.
IB's port: 4002, 4001, getway, the data sent by the paper account vs the live account are inconsistent