Sha256: d0971b06964ddf866a9c959b081d0fac9628456138edfa44d26bca6d905ee8b8

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 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

    Stocks =
        {:wfc => Models::Contract.new(:symbol => "WFC",
                                      :exchange => "NYSE",
                                      :currency => "USD",
                                      :sec_type => SECURITY_TYPES[:stock],
                                      :description => "Wells Fargo"),

         :aapl => Models::Contract.new(:symbol => "AAPL",
                                       :currency => "USD",
                                       :sec_type => SECURITY_TYPES[:stock],
                                       :description => "Apple Inc."),

         :wrong => Models::Contract.new(:symbol => "QEEUUE",
                                        :exchange => "NYSE",
                                        :currency => "USD",
                                        :sec_type => SECURITY_TYPES[:stock],
                                        :description => "Non-existent stock"),
        }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ib-ruby-0.7.3 lib/ib-ruby/symbols/stocks.rb
ib-ruby-0.7.2 lib/ib-ruby/symbols/stocks.rb
ib-ruby-0.7.0 lib/ib-ruby/symbols/stocks.rb
ib-ruby-0.6.1 lib/ib-ruby/symbols/stocks.rb