Sha256: 2c53c2cf58f2089592781e6725ce8e0070c23ad5617bb71802122cceb06ef1b1

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# Stock contracts definitions
#
# Note that the :description field is particular to ib, 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 => IB::Contract.new(:symbol => "WFC",
                                  :exchange => "NYSE",
                                  :currency => "USD",
                                  :sec_type => :stock,
                                  :description => "Wells Fargo"),

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ib-ruby-0.8.3 lib/ib/symbols/stocks.rb