Skip to main content

Interactive Brokers Python API (python 3 compatible version of https://github.com/blampe/IbPy) - maintained by LucidInvestor

Project description

# IbPy - Interactive Brokers Python API

IbPy Released 15 Jun 2013

## What is IbPy?

IbPy is a third-party implementation of the API used for accessing the Interactive Brokers on-line trading system. IbPy implements functionality that the Python programmer can use to connect to IB, request stock ticker data, submit orders for stocks and futures, and more.

## What’s new in this release?

  • TWS API version 9.70 now supported

  • Over 60% test coverage and growing

  • Fixed outstanding bugs in EReader generated source

  • Module ib.opt.logger moved to ib.lib.logger

  • Class ib.opt.Connection moved to new ib.opt.connection module

  • Added script to filter TWS log files; see demo/log_filter

  • Added ib.sym package to hold various symbolic constants

  • Many small enhancements to ib.opt package

# Where can I get IbPy?

GitHub:

https://github.com/blampe/IbPy

Older versions of IbPy are available for download from Google Code:

https://code.google.com/p/ibpy/downloads/list

Project page:

http://code.google.com/p/ibpy/

# How do I use IbPy?

See the IbPy wiki page “Getting Started with IbPy”:

http://code.google.com/p/ibpy/wiki/GettingStarted

# What are the requirements?

IbPy requires Python 2.5 or newer. Previous versions are not supported.

TWS requires a web browser capable of executing Sun(R) Java(tm) applets. TWS can also be started directly with Sun(R) Java(tm) and the stand-alone package supplied by Interactive Brokers.

# What is Interactive Brokers?

From the page “About The Interactive Brokers Group” [2]:

> Interactive Brokers conducts its broker/dealer and proprietary trading > businesses on 60 market centers worldwide. In its broker dealer agency > business, IB provides direct access (“on line”) trade execution and clearing > services to institutional and professional traders for a wide variety of > electronically traded products including options, futures, stocks, forex, and > bonds worldwide. In its proprietary trading business IB engages in market > making for its own account in about 6,500 different electronically traded > products. Interactive Brokers Group and its affiliates now trade 19% of the > world’s exchange traded equity options, and executes approximately 500,000 > trades per day.

# What is Python?

From the page “What is Python?” [1]:

> Python is an interpreted, interactive, object-oriented programming language. > It is often compared to Tcl, Perl, Scheme or Java.

> Python combines remarkable power with very clear syntax. It has modules, > classes, exceptions, very high level dynamic data types, and dynamic typing. > There are interfaces to many system calls and libraries, as well as to > various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules > are easily written in C or C++. Python is also usable as an extension > language for applications that need a programmable interface.

> The Python implementation is portable: it runs on many brands of UNIX, on > Windows, DOS, OS/2, Mac, Amiga… If your favorite system isn’t listed here, > it may still be supported, if there’s a C compiler for it. Ask around on > comp.lang.python – or just try compiling Python yourself.

> The Python implementation is copyrighted but freely usable and distributable, > even for commercial use.

# What Else?

IbPy is not a product of Interactive Brokers, nor is this project affiliated with IB.

IbPy is installed with distutils. Refer to the Python distutils documentation for more information. The digest version is:

$ tar xzf IbPy-0.8.0-9.67.tar.gz $ cd :release_root: $ python setup.py install

The TWS demo system is available here:

http://interactivebrokers.com/cgi-pub/jtslink.pl?user_name=edemo

The stand-alone TWS and other API software is available from IB:

http://interactivebrokers.com/

IbPy is distributed under the New BSD License. See the LICENSE file in the release for details.

I’m very interested in your experience with IbPy. Please drop me an note with any feedback you have.

Troy Melhase

[1]: http://www.interactivebrokers.com/en/general/about/about.php [2]: http://python.org/doc/Summary.html

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IbPy-lucidinvestor-1.0.0.100.tar.gz (59.8 kB view details)

Uploaded Source

Built Distributions

IbPy_lucidinvestor-1.0.0.100-py3-none-any.whl (62.7 kB view details)

Uploaded Python 3

IbPy_lucidinvestor-1.0.0.100-py2.7.egg (133.3 kB view details)

Uploaded Source

File details

Details for the file IbPy-lucidinvestor-1.0.0.100.tar.gz.

File metadata

File hashes

Hashes for IbPy-lucidinvestor-1.0.0.100.tar.gz
Algorithm Hash digest
SHA256 527a9e1048a2db4436c0ad1c1b2a181155980c49ac04aa7c4c309bb499dc6a7d
MD5 3efbece8a7de9964d159f8c50a793c15
BLAKE2b-256 213d79e0ac7a492400a7010c13205809f0875be4cc4964bcd59dfe361147f84b

See more details on using hashes here.

File details

Details for the file IbPy_lucidinvestor-1.0.0.100-py3-none-any.whl.

File metadata

File hashes

Hashes for IbPy_lucidinvestor-1.0.0.100-py3-none-any.whl
Algorithm Hash digest
SHA256 b67cd8b17b69bede2328fb552c1acecb04f9f8f1ad92c39f35f8e6ad09772f46
MD5 defb61de443df7b5dc1ab26c944b8430
BLAKE2b-256 1b24f32124f13724a53dbde71c41b9b8530b0ef43d844aa126590387a077f306

See more details on using hashes here.

File details

Details for the file IbPy_lucidinvestor-1.0.0.100-py2.7.egg.

File metadata

File hashes

Hashes for IbPy_lucidinvestor-1.0.0.100-py2.7.egg
Algorithm Hash digest
SHA256 d1973094af75d5c941440c07f171bced5c23d70b5edafd88e8ee22ad1b720137
MD5 4067149237c0d0ec8c8a40da9579556b
BLAKE2b-256 76ba4319fb2d56988443772cf08b659cf34c1b6998f72b19f806b09b1828496e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page