Module: IB::Symbols::Index
- Extended by:
- IB::Symbols
- Defined in:
- lib/ib/symbols/index.rb
Constant Summary
Constants included from IB::Symbols
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
.contracts ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ib/symbols/index.rb', line 7 def self.contracts @contracts.presence || super.merge( :dax => IB::Index.new(:symbol => "DAX", :currency => "EUR", exchange: 'EUREX', :description => "DAX Performance Index."), :asx => IB::Index.new( :symbol => 'AP', :currency => 'AUD', exchange: 'ASX', :description => "ASX 200 Index" ), :hsi => IB::Index.new( :symbol => 'HSI', :currency => 'HKD', exchange: 'HKFE', :description => "Hang Seng Index" ), :minihsi => IB::Index.new( :symbol => 'MHI', :currency => 'HKD', exchange: 'HKFE', :description => "Mini Hang Seng Index" ), :stoxx => IB::Index.new(:symbol => "ESTX50", :currency => "EUR", exchange: 'EUREX', :description => "Dow Jones Euro STOXX50"), :spx => IB::Index.new(:symbol => "SPX", :currency => "USD", exchange: 'CBOE', :description => "S&P 500 Stock Index"), :vhsi => IB::Index.new( symbol: 'VHSI', exchange: 'HKFE', :description => "Hang Seng Volatility Index"), :vasx => IB::Index.new( symbol: 'XVI', exchange: 'ASX', :description => "ASX 200 Volatility Index") , :vstoxx => IB::Index.new(:symbol => "V2TX", :currency => "EUR", exchange: 'EUREX', :description => "VSTOXX Volatility Index"), :vdax => IB::Index.new(:symbol => "VDAX", exchange: 'EUREX', :description => "German VDAX Volatility Index"), :vix => IB::Index.new(:symbol => "VIX", exchange: 'CBOE', :description => "CBOE Volatility Index"), :volume => IB::Index.new( symbol: 'VOL-NYSE', exchange: 'NYSE', description: "NYSE Volume Index" ), :trin => IB::Index.new( symbol: 'TRIN-NYSE', exchange: 'NYSE', description: "NYSE TRIN (or arms) Index"), :tick => IB::Index.new( symbol: 'TICK-NYSE', exchange: 'NYSE', description: "NYSE TICK Index"), :a_d => IB::Index.new( symbol: 'AD-NYSE', exchange: 'NYSE', description: "NYSE Advance Decline Index") ) end |