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