https://ibkrcampus.com/ibkr-api-page/twsapi-doc/#api-introduction https://interactivebrokers.github.io/tws-api/introduction.html Cannot find much information. What is this EWrapperMsgGenerator class? From the sample codes, it seems Java-specific and is a class used to send me messages/outputs in *receiver functions*? If so, it is rather important but no info?
looks like it just returns String from static functions. More utility than anything. I dont see it used anywhere other than samples and tests
I see it used in reading data from reqHistoricalData(), Code: @Override public void historicalData(int reqId, Bar bar) { System.out.println("HistoricalData: " + EWrapperMsgGenerator.historicalData(reqId, bar.time(), bar.open(), bar.high(), bar.low(), bar.close(), bar.volume(), bar.count(), bar.wap())); } It seems used to read data received for that receiver function, so EWrapperMsgGenerator.nextValidId(id) for next Id returned
It works as a text formatting tool for printing callback replies to terminal, in case you're too lazy to do your own formatting. To be honest: I have never used it in my own software.
Your right, I saw it being used in the sample codes and some Github codes, but the return parameters can just be read directly. That is such a useless static method.