README.rdoc in ib-ruby-0.4.3 vs README.rdoc in ib-ruby-0.4.20

- old
+ new

@@ -1,18 +1,18 @@ -= mix += 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 +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' TWS API The goal of this fork is to modernize library structure (Bundler/Gemfile/etc) and -then roll out a new version based on latest IB TWS API. +then roll out a new version based on latest IB TWS API v.965. == FEATURES/PROBLEMS: * This is a ALPHA release, and should not be used for live trading. Any features contained with are AS-IS and may not work in all conditions @@ -37,11 +37,14 @@ == SYNOPSIS: First, start up Interactive Broker's Trader Work Station. Ensure it is configured to allow API connections on localhost. ->> require 'ib-ruby' ->> ib_connection = IB::IB.new() + >> require 'ib-ruby' + >> ib = IB::Connection.new + >> ib.subscribe(IB::Messages::Incoming::Alert) { |msg| puts msg.to_human } + >> ib.subscribe(IB::Messages::Incoming::AccountValue) { |msg| puts msg.to_human } + >> ib.send IB::Messages::Outgoing::RequestAccountData.new :subscribe => true == LICENSE: Copyright (c) 2011 Arvicco. See LICENSE for details.