Skip to content
kmcd edited this page Sep 24, 2012 · 10 revisions

Installation

I use homebrew as my package manager on OSX.

IB documentation:

Install groovy

Use a 1.8.x maintenance release. Do NOT use the latest groovy version: 2.0.

Here's my groovy version:

$ groovy -version
Groovy Version: 1.8.6 JVM: 1.6.0_35 Vendor: Apple Inc. OS: Mac OS X

Install gradle

Here's my gradle version:

$ gradle --version
------------------------------------------------------------
Gradle 1.0-milestone-9
------------------------------------------------------------

Gradle build time: Tuesday, March 13, 2012 4:10:09 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
JVM: 1.6.0_35 (Apple Inc. 20.10-b01-428)
OS: Mac OS X 10.7.4 x86_64

Source code

You'll need to install git.

Download code from github:

$ git clone git@github.com:kmcd/hummingbird.git 

Run gradle task (sanity check)

$ gradle test 

Start IB gateway

Please follow the instructions to install the IB TWS:

Login credentials:

  • Username: kmcdon370
  • Password: d0naupav
  • Select IB API api type not FIX CTCI .

N.B. I'm using Mac OSX/Unix, if you're using Windows please use the relevant installation guides from the the IB documentation.

Start IB gateway test client

Please follow the instructions to start the IB TWS test client:

If you can't connect, ensure you're using the correct port number.

Test request for Historical Data using the QQQ symbol.

Connect to the IB gateway from groovy shell.

See if you can use the gateway code I've written to connect to the IB gateway:

$ groovysh

load /src/main/groovy/gateway.groovy

...

Clone this wiki locally