Skip to content

Instantly share code, notes, and snippets.

@vpribish
vpribish / IBAPIpythonexample1.py
Last active April 17, 2020 13:50 — forked from robcarver17/IBAPIpythonexample1.py
fix a crash if your server is not running or accepting connections. initialize error handling before trying to open a connection (it can fail, generating errors you need to handle)
# Gist example of IB wrapper ...
#
# Download API from http://interactivebrokers.github.io/#
#
# Install python API code /IBJts/source/pythonclient $ python3 setup.py install
#
# Note: The test cases, and the documentation refer to a python package called IBApi,
# but the actual package is called ibapi. Go figure.
#
# Get the latest version of the gateway: