lib/ib/messages/incoming/real_time_bar.rb in ib-ruby-0.9.1 vs lib/ib/messages/incoming/real_time_bar.rb in ib-ruby-0.9.2
- old
+ new
@@ -5,11 +5,11 @@
# RealTimeBar contains following @data:
# :request_id - The ID of the *request* to which this is responding
# :time - The date-time stamp of the start of the bar. The format is offset in
# seconds from the beginning of 1970, same format as the UNIX epoch time
# :bar - received RT Bar
- RealTimeBar = def_message 50,
+ RealTimeBar = def_message [50, 3],
[:request_id, :int],
[:bar, :time, :int],
[:bar, :open, :decimal],
[:bar, :high, :decimal],
[:bar, :low, :decimal],
@@ -21,10 +21,10 @@
def bar
@bar = IB::Bar.new @data[:bar]
end
def to_human
- "<RealTimeBar: #{request_id} #{time}, #{bar}>"
+ "<RealTimeBar: #{request_id} #{bar}>"
end
end # RealTimeBar
end # module Incoming
end # module Messages