Class: IB::OutgoingMessages::RequestAccountData
- Inherits:
-
AbstractMessage
- Object
- ExtremelyAbstractMessage
- AbstractMessage
- IB::OutgoingMessages::RequestAccountData
- Defined in:
- lib/ib-ruby/messages.rb
Overview
Data is { :subscribe => boolean, :account_code => string }
:account_code is only necessary for advisor accounts. Set it to empty (”) for a standard account.
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
280 281 282 |
# File 'lib/ib-ruby/messages.rb', line 280 def self. 6 end |
Instance Method Details
#queue(server) ⇒ Object
283 284 285 286 287 288 289 290 |
# File 'lib/ib-ruby/messages.rb', line 283 def queue(server) queue = [ self.class., 2, # version @data[:subscribe] ] queue.push(@data[:account_code]) if server[:version] >= 9 queue end |