Module: IB::Symbols::Stocks

Extended by:
IB::Symbols
Defined in:
lib/ib/symbols/stocks.rb

Class Method Summary collapse

Methods included from IB::Symbols

[]

Class Method Details

.contractsObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ib/symbols/stocks.rb', line 7

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