Search
× Search
Sunday, December 22, 2024

Archived Discussions

Recent member discussions

The Algorithmic Traders' Association prides itself on providing a forum for the publication and dissemination of its members' white papers, research, reflections, works in progress, and other contributions. Please Note that archive searches and some of our members' publications are reserved for members only, so please log in or sign up to gain the most from our members' contributions.

Using the ibpy api

photo

 Jacob Umflat, Quantitative Researcher and Private Trader

 Saturday, July 4, 2015

Hey, I am using the Ibpy API, up until now I just took market data and put on orders. I did not manage the orders after transmitting them. I saw this example: https://www.quantstart.com/articles/Using-Python-Ibpy-and-the-Interactive-Brokers-API-to-Automate-Trades which explains simple concepts,but a lot of functions are missing. Does anyone have examples of more readable examples for Ibpy? or a different api to connect python and Interactive brokers? Thanks


Print

5 comments on article "Using the ibpy api"

photo

 private private,

 Saturday, July 4, 2015



Rob Carver uses SWIG version with his excellent posts here:


http://qoppac.blogspot.co.uk/2014/03/using-swigibpy-so-that-python-will-play.html


Python wrappers are unsupported by IB seems to be an issue in terms of their quality and coverage. Thus people like this that want to see improvements:


http://www.linkedin.com/grp/post/4932221-6020111778640384002#commentID_discussion%3A6020111778640384002%3Agroup%3A4932221


Other than that, learn C#, Java or C++?


photo

 Greg Carleu, Automated Trading Systems Development at UFA LLC

 Sunday, July 5, 2015



IBPY has been great for us. I strongly encourage you to keep going in that direction. That being said the documentation on it is a bit light.


You can take a look here: http://code.google.com/p/ibpy/wiki/GettingStarted


You also might give IB a call. They have some socket client code (IBPY is just a socket interface to TWS) in C++ which can be used as an example.



photo

 Jacob Umflat, Quantitative Researcher and Private Trader

 Monday, July 6, 2015



Thank you for the information:

Nigel - I started reading Rob stuff and looks very interesting, I hope I can use SWIG with my already implemented ibpy code.I think my needs can be resolved using only python and don't believe I have to use other langues even thought I am using the IB Java API book to learn of options.

Greg - Thank you for this reminder, I think I tried to use it in the past and something went wrong, I will try again.


photo

 private private,

 Monday, July 6, 2015



This seems to be a more recent update of IBPy since 2008:


https://github.com/blampe/IbPy


and a fork:


https://github.com/jplehmann/IbPy


photo

 Dan Dunn, VP of Product and Community at Quantopian

 Friday, July 17, 2015



Have you looked at https://www.quantopian.com, which runs on the open source backtester written in Python at https://zipline.io? On Quantopian you can research your idea in an IPython notebook, write the algorithm in Python, test it, and trade it on your IB account for free. We provide price data and corporate fundamental data as well. (Yes, I work for Quantopian.)

Please login or register to post comments.

TRADING FUTURES AND OPTIONS INVOLVES SUBSTANTIAL RISK OF LOSS AND IS NOT SUITABLE FOR ALL INVESTORS
Terms Of UsePrivacy StatementCopyright 2018 Algorithmic Traders Association