Module: IB::Symbols::Bonds

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

Constant Summary

Constants included from IB::Symbols

VERSION

Class Method Summary collapse

Methods included from IB::Symbols

[], add_contract, all, allocate_collection, bunch, contracts, hardcoded?, method_missing, print_all, purge_collection, read_collection, remove_contract, set_origin, store_collection, to_human

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