Skip to main content

Third party Python API for Interactive Brokers

Project description

Overview

Interactive Brokers Python API, auto generated from C++ API using SWIG.

Latest version: 0.2.1 (TWS API v9.65)

Install

Use pip (recommended):

$ pip install swigibpy

Alternatively download your archive of choice and run:

$ python setup.py install

Usage

To use simply import the swigibpy module, see the examples directory for more. For API reference refer to the C++ API documentation.

Develop

Contributions are welcome! For developement you can build the extension in the current dir:

$ python setup.py build_ext --build-lib .

To regenerate the SWIG wrappers (SWIG 2.0+ required), in the IB API directory run:

$ swig -v -c++ -python -threads -o swig_wrap.cpp -outdir .. -modern
    -fastdispatch -nosafecstrings -noproxydel -fastproxy -fastinit
    -fastunpack -fastquery -modernargs -nobuildnone ../swigify_ib.i

NOTE: SWIG options -builtin and -fvirtual are not compatible with swigibpy’s interface file.

License

swigibpy original code is free software under the New BSD license.

Interactive Brokers propriety C++ API is copyright Interactive Brokers LLC. swigibpy is in no way supported or endorsed by Interactive Brokers LLC.


Project details


Download files

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

Source Distribution

swigibpy-0.2.1.tar.gz (124.2 kB view hashes)

Uploaded Source

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