class IB::Underlying

Calculated characteristics of underlying Contract (volatile)

Public Instance Methods

==(other) click to toggle source

Comparison

Calls superclass method IB::BaseProperties#==
# File lib/models/ib/underlying.rb, line 25
def == other
  super(other) ||
    other.is_a?(self.class) &&
    con_id == other.con_id && delta == other.delta && price == other.price
end
default_attributes() click to toggle source
Calls superclass method IB::BaseProperties#default_attributes
# File lib/models/ib/underlying.rb, line 15
def default_attributes
  super.merge :con_id => 0
end
serialize() click to toggle source

Serialize under_comp parameters

# File lib/models/ib/underlying.rb, line 20
def serialize
  [true, con_id, delta, price]
end