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