-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding interface for Interactive Brokers #1
Comments
Sure. Can you point me to their api documentation? Do they have any ready
to use library for java to facilitate using their api?
…On Sat, 16 Nov. 2019, 5:35 am jecker7, ***@***.***> wrote:
Any plans for this yet?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=ABWFQPWKTQPQWYV7NPZDN3LQT3XIZA5CNFSM4JN7ANA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZWCPYA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWFQPV5GAS34VN7HEOQJL3QT3XIZANCNFSM4JN7ANAQ>
.
|
Happy to help out with the interface also, have some working experience writing these. A low-latency FIX connection would be a nice feature to implement. |
Thanks for that. Their documentation is a bit all over the place but I found this closed project: https://github.com/InteractiveBrokers/tws-api-public From their website there are a few files from 2013, so I assume it's outdated. I had a quick look over their Not a lot of accessible info on the FIX connection setup either, all I could find was the cost to setup which is not exactly cheap. As you are more familiar with their API's, would you mind implementing a simple method of the Cheers! |
Also to help integrating via FIX protocol we'd use quickfixj |
Yes will happily give it a go this weekend. Also plan on adding another interface for IQFeed data vendor with a websocket connection. Also are you available on discord or slack to talk about the project further? |
Thanks! I created a slack workspace. Here is the invitation link: https://join.slack.com/t/univocitytrader/shared_invite/enQtODM3MjExNjEzODA4LWVkY2MyNGNmZjNhYzM4ZTlhYWRjOWM5MjRmMzBkOTRmOGMwOGFjN2ZhNTViYTU4M2Y2ODQwMzgwMTk2Y2ViYmI |
The IB API does not communicate directly with Interactive Brokers' servers. There's a Java app called TWS Workstation which runs on any PC in your network. The API connects to that and then your requests from the API get forwarded from there to the IB servers. The API is pretty simple. You implement an interface (EWrapper) where all the methods you inherit provide the callbacks (i.e., responses messages from the TWS Workstation app) from your API requests. If you don't want to implement all of the interface, you can instead inherit from the DefaultEWrapper class which implements the callbacks with empty method bodies. That way, you can pick and choose which callbacks are important to your trading app. Oh, sorry, just found this. IB has recently released a new REST API: https://interactivebrokers.github.io/cpwebapi/ I got this info from r/algotrading on reddit. Seems there's issues with connecting with that and maintaining the well-established way (TWS Workstation). Personally, I would stick with communicating with the TWS API. If something goes wrong, you can always correct orders manually from the Workstation app. |
One thing you may want to add in the future for better performance is a caching mechanism for your indicators to reduce repeated computation time. Here's a Java TA library which does this as an example: |
Thanks @SteveH2003, I'll open a new issue with that suggestion. |
Any plans for this yet?
The text was updated successfully, but these errors were encountered: