Sha256: 433ee89a13264c245b82c6caea968dfac037de50fa2305681f9e9691c1848d5b

Contents?: true

Size: 477 Bytes

Versions: 6

Compression:

Stored size: 477 Bytes

Contents

# Frequently used stock contracts definitions
# TODO: auto-request :ContractDetails from IB if unknown symbol is requested?
module IB
  module Symbols
    module CFD
      extend Symbols

      def self.contracts
	@contracts.presence || super.merge(
          :dax => IB::Contract.new(:symbol => "IBDE30", sec_type: :cfd,
                                    :currency => "EUR",
                                    :description => "DAX  CFD."),

 )
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ib-symbols-1.5 lib/ib/symbols/cfd.rb
ib-symbols-1.4 lib/ib/symbols/cfd.rb
ib-symbols-1.3 lib/ib/symbols/cfd.rb
ib-symbols-1.2 lib/ib/symbols/cfd.rb
ib-symbols-1.1 lib/ib/symbols/cfd.rb
ib-symbols-1.0 lib/ib/symbols/cfd.rb