Class: IB::OutgoingMessages::CancelMarketDepth

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

Overview

data = { :ticker_id => int }

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



389
390
391
# File 'lib/ib-ruby/messages.rb', line 389

def self.message_id
  11
end

Instance Method Details

#queue(server) ⇒ Object



392
393
394
395
396
397
398
399
# File 'lib/ib-ruby/messages.rb', line 392

def queue(server)
  requireVersion(self, 6)

  [ self.class.message_id,
    1, # version
    @data[:ticker_id]
  ]
end