Class: IB::OutgoingMessages::CancelOrder

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

Overview

Data format is { :id => id-to-cancel }

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



250
251
252
# File 'lib/ib-ruby/messages.rb', line 250

def self.message_id
  4
end

Instance Method Details

#queue(server) ⇒ Object



254
255
256
257
258
259
260
# File 'lib/ib-ruby/messages.rb', line 254

def queue(server)
  [
   self.class.message_id,
   1,  # version
   @data[:id]
  ]
end