Class: IB::OutgoingMessages::CancelMarketData

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

Overview

Data format is { :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



120
121
122
# File 'lib/ib-ruby/messages.rb', line 120

def self.message_id
  2
end

Instance Method Details

#queue(server) ⇒ Object



123
124
125
126
127
# File 'lib/ib-ruby/messages.rb', line 123

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