Class: IB::Messages::Incoming::ExecutionData

Inherits:
Object
  • Object
show all
Defined in:
lib/ib/messages/incoming/execution_data.rb

Instance Method Summary collapse

Instance Method Details

#contractObject



35
36
37
# File 'lib/ib/messages/incoming/execution_data.rb', line 35

def contract
  @contract = IB::Contract.build @data[:contract]
end

#executionObject



39
40
41
# File 'lib/ib/messages/incoming/execution_data.rb', line 39

def execution
  @execution = IB::Execution.new @data[:execution]
end

#loadObject



31
32
33
# File 'lib/ib/messages/incoming/execution_data.rb', line 31

def load
  simple_load
end

#to_humanObject



43
44
45
# File 'lib/ib/messages/incoming/execution_data.rb', line 43

def to_human
  "<ExecutionData #{request_id}: #{contract.to_human}, #{execution}>"
end