Sha256: 7d3f649ba2709b8cf8b45dc5ad217efb9fffa994f57991c2b023814a940e21ac
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 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 => IB::Contract.new(:symbol => "WFC", :exchange => "NYSE", :currency => "USD", :sec_type => SECURITY_TYPES[:stock], :description => "Wells Fargo"), :aapl => IB::Contract.new(:symbol => "AAPL", :currency => "USD", :sec_type => SECURITY_TYPES[:stock], :description => "Apple Inc."), :wrong => IB::Contract.new(:symbol => "QEEUUE", :exchange => "NYSE", :currency => "USD", :sec_type => SECURITY_TYPES[:stock], :description => "Non-existent stock"), } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.7.4 | lib/ib-ruby/symbols/stocks.rb |