Demo of Interactive Brokers TWS with Java on Ubuntu Linux

(Last Updated On: November 12, 2015)

Demo of Interactive Brokers TWS with Java on Ubuntu Linux

In my video, I was able to demo how to request real time data of an stock, forex, and a future contract

To install Interactive Brokers on Ubuntu:
Download TWS Jar from https://www.interactivebrokers.com/en/index.php?f=674
Follow from:

How to run Interactive Brokers TWS on Ubuntu Linux with Java API

You TWS from my link above

NOTE: Do note use Open JDK, use the Oracle Hotspot as there seem to be compatibility problems where it appears TWS is frozen
http://askubuntu.com/questions/261311/how-to-remove-openjdk-7

Install Oracle JDK 8: http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/

or run this http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

Follow app for streaming real time data http://holowczak.com/ib-api-java-realtime/

To run Interactive Brokers Java Client API with Eclipse

https://www.interactivebrokers.com/en/software/api/apiguide/java/running_the_java_test_client_program_with_eclipse.htm

When running, use sample of EUR from
https://www.interactivebrokers.com/en/software/api/apiguide/c/ctutorial_requestmarketdata.htm

Symbol=EUR or AUD, Sec type=CASH, Exchange=IDEALPRO, Comp Exch=ISLAND, Currency=USD or GBP

Other Forex symbols here https://www.interactivebrokers.com/en/index.php?f=2222&ns=T&exch=globex

Use something like Symbol EUR against base currency of GBP

A reliable symbol list source is https://www.linnsoft.com/support/symbol-guideIDEAL

Also to download a sample oil control (https://groups.yahoo.com/neo/groups/TWSAPI/conversations/topics/26015)

Symbol=CL Sec type=FUT Expiry=201512 Exchange=NYMEX Currency=USD
But note the IB API Yahooo group so get more info there

 

Best way to install and configure Eclipse on Ubuntu:

http://difusal.blogspot.ca/2015/06/how-to-install-eclipse-mars-45-on-ubuntu.html

 

Join my FREE newsletter to see how  I complete this message queue with Redis 

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

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!
This entry was posted in Quant Development and tagged , , , , , on by .

About 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