Sha256: 6595dcc5b5bd596b859eeb0d52c6e4edfee553d415aa151509d51b70f0c1ccbf

Contents?: true

Size: 1.81 KB

Versions: 1

Compression:

Stored size: 1.81 KB

Contents

= ib-ruby
by:: Arvicco
url:: http://github.com/arvicco/ib-ruby

This is a fork of http://github.com/wdevauld/ib-ruby by Wes Devauld,
that is in turn forked from http://github.com/pjlegato/ib-ruby by Paul Legato.

== DESCRIPTION:

Ruby Implementation of the Interactive Broker' Trader Work Station (TWS) API v.965.

== FEATURES/PROBLEMS:

* This is a BETA release, and should not be used for live trading.
  Any features contained with are AS-IS and may not work in all conditions
* This code is not sanctioned or supported by Interactive Brokers

== REQUIREMENTS:

Interactive Broker's TWS or Gateway installed and configured to allow API
connections on localhost.

== INSTALL:

=== From Gem

  $ sudo gem install ib-ruby

=== From Source

  $ git clone http://github.com/arvicco/ib-ruby
  $ cd ib-ruby; rake gem:install

== SYNOPSIS:

First, start up Interactive Broker's Trader Work Station.
Make sure it is configured to allow API connections on localhost.

  >> require 'ib-ruby'
  >> ib = IB::Connection.new
  >> ib.subscribe(:Alert, :AccountValue) { |msg| puts msg.to_human }
  >> ib.send :RequestAccountData, :subscribe => true

Essentially, all interaction of your code and TWS can be described as an exchange
of messages. You subscribe to message types you're interested in using
IB::Connection#subscribe and request data from TWS using IB::Connection#send.
The code blocks (or procs) given to #subscribe will be executed when a message of
requested type is received, with the received message as its argument.

Use sample scripts in /bin folder as an example of how common tasks can be
achieved using ib-ruby.

See /lib/ib-ruby/messages for a full list of TWS incoming/outgoing messages and
their attributes. Original TWS docs and code samples can be found in /misc folder.

== LICENSE:

Copyright (c) 2011 Arvicco. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ib-ruby-0.5.0 README.rdoc