Sha256: 8d96189c3a9ffbe8698a2665351af62f5d0e518b54ac5e2c1898902862712747

Contents?: true

Size: 1.63 KB

Versions: 9

Compression:

Stored size: 1.63 KB

Contents

# Stock contracts definitions
#
# Note that the :description field is particular to ib-ruby, and is NOT part of the
# standard TWS API. It is never transmitted to IB. It's purely used clientside, and
# you can store any arbitrary string that you may find useful there.

module IB
  module Symbols

    Options =
        {:wfc20 => IB::Option.new(:symbol => "WFC",
                                  :expiry => "201207",
                                  :right => "CALL",
                                  :strike => 20.0,
                                  :description => "Wells Fargo 20 Call 2012-07"),
         :aapl500 => IB::Option.new(:symbol => "AAPL",
                                    :expiry => "201301",
                                    :right => "CALL",
                                    :strike => 500,
                                    :description => "Apple 500 Call 2013-01"),
         :z50 => IB::Option.new(:symbol => "Z",
                                :exchange => "LIFFE",
                                :expiry => "201206",
                                :right => "CALL",
                                :strike => 50.0,
                                :description => " FTSE-100 index 50 Call 2012-06"),
         :spy75 => IB::Option.new(:symbol => 'SPY',
                                  :expiry => "20120615",
                                  :right => "P",
                                  :currency => "USD",
                                  :strike => 75.0,
                                  :description => "SPY 75.0 Put 2012-06-16"),
         :spy100 => IB::Option.new(:osi => 'SPY 121222P00100000'),
        }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ib-ruby-0.8.1 lib/ib-ruby/symbols/options.rb
ib-ruby-0.8.0 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.12 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.11 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.10 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.9 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.8 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.6 lib/ib-ruby/symbols/options.rb
ib-ruby-0.7.4 lib/ib-ruby/symbols/options.rb