IbPy comes from Interactive Brokers Python API.
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.
In order to use IbPy, the TWS application provided by IB must be installed and running. See the note "What is TWS?" for more information.
IbPy is used in the same manner as all socket clients supplied by Interactive Brokers.
The typical sequence of operations is:
· Start the browser-based or stand-alone TWS application
· In TWS, enable socket clients via the Configure -> API menu
· Connect to TWS from external application
· In TWS, accept the incoming connection
· External application requests ticker updates, sends orders, receives account data, portfolio data, etc.
To connect to TWS and interact with the brokers trading system, the Python developer defines methods or functions to act as callbacks and associates these with an Ib.Socket.SocketConnection object. Refer to the Demo.py file in the distribution for a complete example.
In lieu of IbPy documentation, developers are referred to the IbPy source code and the documentation supplied by Interactive Brokers.
· Python 2.3 or newer
What's New in This Release:
· The focus of this release is compatibility with recent versions of the TWS application. TWS Build 851.9 is the most recent release tested.
· This 0.5 release marks the first version with run time activity logging. The feature is turned on by default. Users wanting to turn the feature off should refer to the source documentation.