Class: IB::IncomingMessages::TickSize
Instance Attribute Summary
#data
#created_at
Class Method Summary
collapse
Instance Method Summary
collapse
inherited, #initialize
Class Method Details
.message_id ⇒ Object
957
958
959
|
# File 'lib/ib-ruby/messages.rb', line 957
def self.message_id
2
end
|
Instance Method Details
#load ⇒ Object
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
|
# File 'lib/ib-ruby/messages.rb', line 961
def load
autoload([:version, :int], [:ticker_id, :int], [:tick_type, :int], [:size, :int])
@data[:type] = case @data[:tick_type]
when 0
:bid
when 3
:ask
when 5
:last
when 8
:volume
else
nil
end
end
|
#to_human ⇒ Object
977
978
979
|
# File 'lib/ib-ruby/messages.rb', line 977
def to_human
@data[:type].to_s + " size: " + @data[:size].to_s
end
|