2rosy is not going to explain anything in terms of programming, all he can do is refactor code and do code "wrappers". His tutorial is not a tutorial but simply his version of refactoring the IB API code. Some of the functions he has refactored are meaningful, others are completely pointless. I guess when you have no real experience in programming, all you can do is refactor code and do wrappers before gaining any meaningful experience.
man I have yet to master the TWS platform, API will be a dream once I evolve into a next level pokemon!
Back to API issues: Has someone found out how to detect if the account is paper or real? I have found no info in the API documentation about this.
Ok, but I do not really want to hard code my login and password in the software. In fact it's for a public software program that should behave different on real and paper accounts, regardless of the login and password. - My real account starts with "U", but I'm not sure if paper accounts always start with "D". If there is really no API function for this, maybe IB support can answer that.
You are right that that feature should be there. IB should relay what kind of account one is connecting to (independent of the account code). But it's not the only important piece of information they are not relaying. There are several other ones even more important, for instance the "barrier" value or knock-out Price for IOPT type contracts (turbo options). And, more importantly, all the info relative to liquidation orders (or any other action taken from the broker's side), which should be fundamental. And the list can go on and on (you will find out in time) ... Give them another 10 years, maybe they will lower a bit their ego and start listening to their automated users (those who bring the real comms $$$ in).