Class: IB::Forex

Inherits:
Contract show all
Defined in:
lib/models/ib/forex.rb

Constant Summary

Constants inherited from Contract

Contract::Subclasses

Instance Attribute Summary

Attributes inherited from Contract

#description

Instance Method Summary collapse

Methods inherited from Contract

#==, #bag?, #bond?, build, #essential, #expiry, #index?, #merge, #option?, #order_requirements, #serialize, #serialize_ib_ruby, #serialize_legs, #serialize_long, #serialize_short, #serialize_supershort, #serialize_under_comp, #stock?, #table_header, #table_row, #to_human, #to_s, #to_short, #verify

Methods included from BaseProperties

#==, #as_table, #content_attributes, #invariant_attributes, #set_attribute_defaults, #table_header, #table_row, #to_human, #update_missing

Instance Method Details

#default_attributesObject



6
7
8
9
# File 'lib/models/ib/forex.rb', line 6

def default_attributes
 # Base-currency: USD
  super.merge :sec_type => :forex, currency:'USD', exchange:'IDEALPRO'
end