Skip to content

Instantly share code, notes, and snippets.

@vpribish
vpribish / IBAPIpythonexample1.py
Last active Apr 17, 2020 — 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)
View IBAPIpythonexample1.py
# 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:
You can’t perform that action at this time.