Class: IB::IncomingMessages::AccountValue

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

Overview

OpenOrder

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

Constructor Details

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

Class Method Details

.message_idObject



1137
1138
1139
# File 'lib/ib-ruby/messages.rb', line 1137

def self.message_id
  6
end

Instance Method Details

#loadObject



1141
1142
1143
1144
# File 'lib/ib-ruby/messages.rb', line 1141

def load
  autoload([:version, :int], [:key, :string], [:value, :string], [:currency, :string])
  version_load(2, [:account_name, :string])
end

#to_humanObject



1146
1147
1148
# File 'lib/ib-ruby/messages.rb', line 1146

def to_human
  "<AccountValue: acct ##{@data[:account_name]}; #{@data[:key]}=#{@data[:value]} (#{@data[:currency]})>"
end