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



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/ib/symbols/stocks.rb', line 8

def self.contracts
  @contracts ||= {
    :aapl => IB::Contract.new(:symbol => "AAPL",
                              :currency => "USD",
                              :sec_type => :stock,
                              :description => "Apple Inc."),

    :vxx => IB::Contract.new(:symbol => "VXX",
                             :exchange => "ARCA",
                             # :currency => "USD",
                             :sec_type => :stock,
                             :description => "iPath S&P500 VIX short term Futures ETN"),

    :wfc => IB::Contract.new(:symbol => "WFC",
                             :exchange => "NYSE",
                             :currency => "USD",
                             :sec_type => :stock,
                             :description => "Wells Fargo"),

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