Sha256: 2592161189ac7416d6b7fe72443e6a4bbaaa20ebfc99f0b823853a1a92d00ba1
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
# Stock contracts definitions module IB module Symbols module Stocks extend Symbols def self.contracts @contracts ||= { :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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.8.4 | lib/ib/symbols/stocks.rb |