Class: IB::OutgoingMessages::RequestMarketDepth
- Inherits:
-
AbstractMessage
- Object
- ExtremelyAbstractMessage
- AbstractMessage
- IB::OutgoingMessages::RequestMarketDepth
- Defined in:
- lib/ib-ruby/messages.rb
Overview
data = { :ticker_id => int, :contract => Contract, :num_rows => int }
Instance Attribute Summary
Attributes inherited from ExtremelyAbstractMessage
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractMessage
Methods inherited from ExtremelyAbstractMessage
Constructor Details
This class inherits a constructor from IB::OutgoingMessages::AbstractMessage
Class Method Details
.message_id ⇒ Object
368 369 370 |
# File 'lib/ib-ruby/messages.rb', line 368 def self. 10 end |
Instance Method Details
#queue(server) ⇒ Object
372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/ib-ruby/messages.rb', line 372 def queue(server) requireVersion(server, 6) queue = [ self.class., 3, # version @data[:ticker_id] ] queue.concat(@data[:contract].serialize_short(server[:version])) queue.push(@data[:num_rows]) if server[:version] >= 19 queue end |