Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlegato committed May 25, 2009
0 parents commit 20b626d
Show file tree
Hide file tree
Showing 17 changed files with 3,737 additions and 0 deletions.
504 changes: 504 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
IB-Ruby: Ruby implementation of the Interactive Brokers' TWS API.
Copyright (C) 2006-2009 Paul Legato
By Paul Legato (pjlegato at gmail dot com)


== License
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA

== Use At Your Own Risk

As the license indicates, this code is provided AS IS, WITH NO
WARRANTY WHATSOEVER, not even an implied warranty of merchantability
or fitness for a particular purpose.

*ANY USE YOU MAKE OF THIS CODE IS ENTIRELY AT YOUR OWN RISK.*

This code may contain any number of errors or bugs, both known and
unknown. Use of this code may result in monetary loss due to known or
unknown bugs and errors. In no event shall the author be liable or
responsible for any loss whatsoever, direct or indirect, that may
occur as a result of your use of this code.


== Overview

This provides a Ruby interface to the Interactive Brokers' Trader
Workstation API (http://www.interactivebrokers.com/). This code is not
sanctioned or endorsed by IB.

== Status of this release

This is an alpha test quality release. I specifically DO NOT recommend
that it be used for live trading under any circumstances. It has not
been tested. I am releasing it in the hopes that the many eyes of the
community will help with enhancing it, so that we all will have a
robust and reliable library to use.



== Use
First, start up TWS and set it to allow connections from localhost.

Then:

require 'ib'

ib = IB::IB.new()

You should see messages flash by displaying the startup messages
received from TWS.

See also the code in examples/ directory.


== Revision history
11/23/06 - 0.1 - alpha release
02/14/07 - 0.2 - alpha release

30 changes: 30 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Copyright (C) 2006 Blue Voodoo Magic LLC.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#

require 'rake'
require 'rake/rdoctask'

desc 'Generate documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ib-ruby'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('LICENSE')
rdoc.rdoc_files.include('*.rb')
end
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Do nonblocking socket i/o between TWS and the Ruby library, so
Thread#join can be used.
Loading

0 comments on commit 20b626d

Please sign in to comment.