Class: IB::Messages::Incoming::HistogramData
- Defined in:
- lib/ib/messages/incoming/historical_data.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
Returns the value of attribute results.
Instance Method Summary collapse
Instance Attribute Details
#results ⇒ Object
Returns the value of attribute results.
69 70 71 |
# File 'lib/ib/messages/incoming/historical_data.rb', line 69 def results @results end |
Instance Method Details
#load ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/ib/messages/incoming/historical_data.rb', line 72 def load super @results = Array.new(@data[:number_of_points]) do |_| { price: buffer.read_decimal, count: buffer.read_int } end end |