Class: IB::OutgoingMessages::RequestContractData
- Inherits:
-
AbstractMessage
- Object
- ExtremelyAbstractMessage
- AbstractMessage
- IB::OutgoingMessages::RequestContractData
- Defined in:
- lib/ib-ruby/messages.rb
Overview
data => { :contract => Contract }
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
338 339 340 |
# File 'lib/ib-ruby/messages.rb', line 338 def self. 9 end |
Instance Method Details
#queue(server) ⇒ Object
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/ib-ruby/messages.rb', line 342 def queue(server) requireVersion(server, 4) queue = [ self.class., 2, # version @data[:contract].symbol, @data[:contract].sec_type, @data[:contract].expiry, @data[:contract].strike, @data[:contract].right ] queue.push(@data[:contract].multiplier) if server[:version] >= 15 queue.concat([ @data[:contract].exchange, @data[:contract].currency, @data[:contract].local_symbol, ]) queue end |