here's a java version if python isnt your thing http://bit.ly/IBorderbuilderJavaThank you 2rosy.
I am not Python expert but I did go through your tutorial
http://nbviewer.ipython.org/github/audubon/ibpytutorial/blob/master/IBpyTrading.ipynb
Can you please provide a working example calling Utils.makeOptOrder
Use a config file and inject your logicOk, 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.
that should behave different on real and paper accounts