Class: IB::OutgoingMessages::RequestExecutions

Inherits:
AbstractMessage show all
Defined in:
lib/ib-ruby/messages.rb

Overview

data = { :filter => ExecutionFilter ]

Instance Attribute Summary

Attributes inherited from ExtremelyAbstractMessage

#created_at

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractMessage

#initialize, #send

Methods inherited from ExtremelyAbstractMessage

#to_human

Constructor Details

This class inherits a constructor from IB::OutgoingMessages::AbstractMessage

Class Method Details

.message_idObject



296
297
298
# File 'lib/ib-ruby/messages.rb', line 296

def self.message_id
  7
end

Instance Method Details

#queue(server) ⇒ Object



299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
# File 'lib/ib-ruby/messages.rb', line 299

def queue(server)
  queue = [ self.class.message_id,
            2 # version
          ]

  queue.concat([
                @data[:filter].client_id,
                @data[:filter].acct_code,

                # The Java says: 'Note that the valid format for m_time is "yyyymmdd-hh:mm:ss"'
                @data[:filter].time,
                @data[:filter].symbol,
                @data[:filter].sec_type,
                @data[:filter].exchange,
                @data[:filter].side
               ]) if server[:version] >= 9

  queue
end