Module: IB::Symbols::Bonds

Extended by:
IB::Symbols
Defined in:
lib/ib/symbols/bonds.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
# File 'lib/ib/symbols/bonds.rb', line 7

def self.contracts
  @contracts ||= {
    :abbey  => IB::Contract.new(:symbol => "ABBEY",
                             :currency => "USD",
                             :sec_type => :bond,
                             :description => "Any ABBEY bond"),

    :ms => IB::Contract.new(:symbol => "MS",
                             :currency => "USD",
                             :sec_type => :bond,
                             :description => "Any Morgan Stanley bond"),

    :wag => IB::Contract.new(:symbol => "WAG",
                             :currency => "USD",
                             :sec_type => :bond,
                             :description => "Any Wallgreens bond"),
  }
end