ANN: IbPy 0.7.0-9.00 - Interactive Brokers Python API

Discussion in 'Python' started by Troy Melhase, Feb 21, 2007.

  1. Troy Melhase

    Troy Melhase Guest

    IbPy - Interactive Brokers Python API
    =====================================
    IbPy 0.7.0-9.00 Released 21 Feb 2007


    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?
    ------------------------------------------------------------------------------
    IbPy is all new. TWS API version 9.00 is supported.

    IbPy is now generated by machine translation of the reference Java
    source code provided by Interactive Brokers. The translation is made
    possible by the java2python_ package.

    This version has 100% feature parity with the reference
    implementation. All API calls are supported, as are all options of
    each call. An additional interface (similar to the interface provided
    by earlier IbPy releases) is also included.

    Because the sources are translated, future versions of the TWS API
    will be supported in a matter of hours or days (not weeks or worse).


    Where can I get IbPy?
    ------------------------------------------------------------------------------
    IbPy is available for download from Google Code:

    http://ibpy.googlecode.com/files/IbPy-0.7.0-9.00.tar.gz

    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`__":

    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?`__":

    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 am I affiliated with
    IB. I am a satisfied IB customer, of course.

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

    $ tar xzf IbPy-0.7.0-9.00.tar.gz
    $ cd IbPy-0.7.0-9.00
    $ 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
    mailto:



    .. _java2python: http://code.google.com/p/java2python/
    __ http://www.interactivebrokers.com/en/general/about/about.php
    __ http://python.org/doc/Summary.html

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.2 (GNU/Linux)

    iD8DBQBF3NHb7BSNUfV28VARArmbAJ4v5uE80AdCFf944G/CblMelBvSaACeJwvI
    D+dPunWbFrGVBGQ/N01udFE=
    =AvTl
    -----END PGP SIGNATURE-----
     
    Troy Melhase, Feb 21, 2007
    #1
    1. Advertising

  2. Troy Melhase

    vj Guest

    Cool. Why is python 2.5 required, will it not work with python 2.4?

    VJ
     
    vj, Feb 23, 2007
    #2
    1. Advertising

  3. Troy Melhase

    Troy Melhase Guest

    On 23 Feb 2007 14:36:24 -0800, vj <> wrote:
    > Cool. Why is python 2.5 required, will it not work with python 2.4?


    Short answer: because java2python produces python 2.5 syntax.

    Long answer:

    I wrote java2python specifically to translate the IB reference code.
    That reference code makes heavy use of the java ternary operator, and
    I wanted the most direct representation of that -- which is the
    conditional expression provided in python 2.5.
     
    Troy Melhase, Feb 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. WJ
    Replies:
    2
    Views:
    494
  2. Troy Melhase
    Replies:
    0
    Views:
    779
    Troy Melhase
    Jun 15, 2004
  3. Praveen, Tayal (IE10)
    Replies:
    0
    Views:
    378
    Praveen, Tayal (IE10)
    Mar 17, 2005
  4. SPE - Stani's Python Editor
    Replies:
    1
    Views:
    647
    Claudio Grondi
    Jan 26, 2006
  5. Junkone
    Replies:
    0
    Views:
    118
    Junkone
    Feb 10, 2008
Loading...

Share This Page