What I need: a lightweight solution to gather depth-of-market info. (and analyze later)
What I did so far: I opened an account in IB, transferred some money. Web access works, mobile access works.
Problem: I cannot find any reasonable API.
Let's go through this, first I go to there:
https://www.interactivebrokers.com/en/index.php?f=5041
It has a table "which API technology best fits your needs", well perfect, Python is my favorite language.
It recommends "IBKR API Software". But when I download it, inside a .zip file there are only some .cpp and .java files. No python as advertised. C++ version is from 2013 and has real compile errors, not just warnings. So that's a dead end.
Let's go to "REST API". That would work for me too, but unfortunately it's in experimental stage and there is no access to depth of market.
Finally there is "IB GATEWAY SOFTWARE". That is a huge program, the docs say:
"The TWS API is an interface to IB's standalone trading applications, TWS and IB Gateway. These are both standalone, Java-based trading applications which were designed to require the use of a graphical user interface for secure user authentication. For that reason "headless" operation of either application without a GUI is not supported."
Oh, it explicitly says no headless for you. OTOH the docs have an interface to query market data:
http://interactivebrokers.github.io/tws-api/market_depth.html
So there is no API, only a huge Java program with GUI that has API in it. Is that correct? How am I supposed to run this in the cloud? How people do this usually? Are there better solutions to stream market data?
What I did so far: I opened an account in IB, transferred some money. Web access works, mobile access works.
Problem: I cannot find any reasonable API.
Let's go through this, first I go to there:
https://www.interactivebrokers.com/en/index.php?f=5041
It has a table "which API technology best fits your needs", well perfect, Python is my favorite language.
It recommends "IBKR API Software". But when I download it, inside a .zip file there are only some .cpp and .java files. No python as advertised. C++ version is from 2013 and has real compile errors, not just warnings. So that's a dead end.
Let's go to "REST API". That would work for me too, but unfortunately it's in experimental stage and there is no access to depth of market.
Finally there is "IB GATEWAY SOFTWARE". That is a huge program, the docs say:
"The TWS API is an interface to IB's standalone trading applications, TWS and IB Gateway. These are both standalone, Java-based trading applications which were designed to require the use of a graphical user interface for secure user authentication. For that reason "headless" operation of either application without a GUI is not supported."
Oh, it explicitly says no headless for you. OTOH the docs have an interface to query market data:
http://interactivebrokers.github.io/tws-api/market_depth.html
So there is no API, only a huge Java program with GUI that has API in it. Is that correct? How am I supposed to run this in the cloud? How people do this usually? Are there better solutions to stream market data?