Configure InteractiveBrokers to run with tbg-Quant

220 views
Skip to first unread message

tbg-Quant-community

unread,
May 7, 2013, 7:13:21 AM5/7/13
to tbg-quant...@googlegroups.com

Configure InteractiveBrokers to run with tbg-Quant
tbg-Quant-v1.1beta5

IB API library cannot be distribute with the tbg-Quant due to license restriction, in order to access InteractiveBrokers services you need to follow these steps:




STEP 1 - Get the jtsclient.jar library 

Download twsapi_unixmac_968.jar from   http://interactivebrokers.github.io/#
Be sure to download the version 9.68, do not download the beta version.
Once the file is downloaded open the jar and extract the jtsclient.jar

To open the jar:

1. On linux/Unix/Mac type:

 jar -xf twsapi_unixmac_968.jar

it will extract the contect of the jar in the same directory.

2. On Windows you can use winrar ( http://www.rarlab.com/download.htm )


STEP 2 - Add the jtsclient.jar to classpath

Copy the jtsclient.jar inside the tbg-quant/lib/ folder.


STEP 3 - Try the HelloIB example

The library has been added to your classpath, everything is ok, you should try to run the example HelloIB.
Open your TWS Client, log in and run the HelloIB.
NOTE: be sure to open API socket connection inside TWS preferences.

For production purpose, we suggest to use IBGateway instead of TWS Client.




Reply all
Reply to author
Forward
0 new messages