Sha256: fb1a7e1538b129de59f61d1efdf3164d1ceb9447123a87182ae8e394612ee4a4

Contents?: true

Size: 908 Bytes

Versions: 13

Compression:

Stored size: 908 Bytes

Contents

# Sample bond contract definitions
module IB
  module Symbols
    module Bonds
      extend Symbols

      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

    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
ib-symbols-1.5 lib/ib/symbols/bonds.rb
ib-symbols-1.4 lib/ib/symbols/bonds.rb
ib-symbols-1.3 lib/ib/symbols/bonds.rb
ib-symbols-1.2 lib/ib/symbols/bonds.rb
ib-symbols-1.1 lib/ib/symbols/bonds.rb
my-ib-api-0.0.4 lib/ib/symbols/bonds.rb
my-ib-api-0.0.3 lib/ib/symbols/bonds.rb
my-ib-api-0.0.2 lib/ib/symbols/bonds.rb
my-ib-api-0.0.1 lib/ib/symbols/bonds.rb
ib-symbols-1.0 lib/ib/symbols/bonds.rb
ib-ruby-0.9.2 lib/ib/symbols/bonds.rb
ib-ruby-0.9.1 lib/ib/symbols/bonds.rb
ib-ruby-0.9.0 lib/ib/symbols/bonds.rb