ibpy-intro http://pythonprogramming.net/ibpy-tutorial-using-interactive-brokers-api-python/ From ibpy tutorial.