forked from topofocus/ib-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 20b626d
Showing
17 changed files
with
3,737 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.