Class: IB::IncomingMessages::NextValidID

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

Overview

This message is always sent by TWS automatically at connect. The IB class subscribes to it automatically and stores the order id in its :next_order_id attribute.

Instance Attribute Summary

Attributes inherited from AbstractMessage

#data

Attributes inherited from ExtremelyAbstractMessage

#created_at

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractMessage

inherited, #initialize

Methods inherited from ExtremelyAbstractMessage

#to_human

Constructor Details

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

Class Method Details

.message_idObject



1200
1201
1202
# File 'lib/ib-ruby/messages.rb', line 1200

def self.message_id
  9
end

Instance Method Details

#loadObject



1204
1205
1206
# File 'lib/ib-ruby/messages.rb', line 1204

def load
  autoload([:version, :int], [:order_id, :int])
end