Is Python smart to use with Interactive Brokers API

(Last Updated On: September 12, 2017)

Is Python smart to use with Interactive Brokers API

HALF PRICE PYTHON INFRASTRUCTURE COURSE HERE

Overview Python Infrastructure Building Blocks Half price

Analytics Home v2

Overview Python Infrastructure Building Blocks

Overview IB API Dukascopy

Dialogue below from a Youtube video:

Hey Bryan – Very interested in your course, but just want to make sure that it’s going to get me where I need to be, as I’ve run into quite a bit of trouble with compatibility (looks like Windows is the preferred OS of choice for algo trading) – I’m interested in setting up a trading environment given the following:

– Working with latest version of Mac OS – I suppose I could set up a windows virtual box if need be, but would prefer not to, as I’m afraid it may yield performance issues – not sure though, just my assumption
– I have experience programming in java/python – as per your observations, it seems like python may be the best choice, as it seems more concise
– The strategy I want to implement is technical/market flow oriented, and simply intended to eliminate entry/exit disciplinary issues while trading. It will need data points like opening print, market cap, time elapsed, current share price, etc. pretty straightforward in that regard

I was originally looking into using the TWS python IbPy api, which looked like a fairly easy way to do this, but the following comment on Sentdex’s intro video scared me a bit:

“As a Python developer IbPy looked nice, however, after spending sometime I decided not to use it. The reasons are 1) it doesn’t seem to be maintained. Not catching up with the latest java client. 2) it’s too low level that you have to keep track of async requests and responses, protocol level events and state. Because of this IbPy tutorials that I know never take off from the basic usage. 3) actually Java client offers high level API com.ib.contracts and com.ib.controller packages. It’s much easier to implement the application level event handlers. IbPy offers the com.ib.client only. 4) I don’t know the quality of the java-to-python translator, especially thread safety. No unit test. Not confident to use with real money 5) If Python is must probably I’d try Jython and the javaclient jar. I’m writing my code in Scala with the jar.”

Any guidance vastly appreciated.
—–

 

Python runs on any platform like Mac OS, windows, Linux. I am also learning Dukascopy with jforex as well which runs on May major platform like macOS windows and Linux. Let me know if you got other questions

—–

Thanks for getting back. I suppose my overarching question is whether or not TWS IBPy will suffice for what I’m trying to do given my OS/the type of strategy I’m trying to implement. If so, it seemed like your course would be a great resource to serve as a guideline, but I would hate to run into issues regarding data retrieval and execution while using real money – the comment that I referenced above from the sentdex video highlights my fear here.
—–
 if you are worried about this, it has been recommended to go with a more rigid language like java or c++. Ib has python API support but there seems
Lots of bugs still.
It could take years to to work out


Also this course is to give a high level overview of python components needed for Aldo trading system.u can alway pipe orders into redis message queue into a java app to be pushed into tws. This is why I have my advanced IB course. Do realize that the python is now half price off

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
About The Author

caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs