Module: IB::Symbols::Commodity

Extended by:
IB::Symbols
Defined in:
lib/ib/symbols/commodity.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



8
9
10
11
12
13
# File 'lib/ib/symbols/commodity.rb', line 8

def self.contracts
	  @contracts.presence || super.merge(
    :xau => IB::Contract.new( symbol: 'XAUUSD', sec_type: :commodity, currency: 'USD',
                              :description => "London Gold ")
	   )
end