class IB::Messages::Incoming::HistoricalData
Attributes
results[RW]
Public Instance Methods
load()
click to toggle source
Calls superclass method
# File lib/ib/messages/incoming/historical_data.rb, line 33 def load super @results = Array.new(@data[:count]) do |_| IB::Bar.new :time => socket.read_string, :open => socket.read_decimal, :high => socket.read_decimal, :low => socket.read_decimal, :close => socket.read_decimal, :volume => socket.read_int, :wap => socket.read_decimal, :has_gaps => socket.read_string, :trades => socket.read_int end end
to_human()
click to toggle source
# File lib/ib/messages/incoming/historical_data.rb, line 49 def to_human "<HistoricalData: #{request_id}, #{count} items, #{start_date} to #{end_date}>" end