Class: IB::Messages::Incoming::OrderStatus

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

Instance Method Summary collapse

Instance Method Details

#client_idObject

Accessors to make OpenOrder and OrderStatus messages API-compatible



52
53
54
# File 'lib/ib/messages/incoming/order_status.rb', line 52

def client_id
  order_state.client_id
end

#local_idObject Also known as: order_id



64
65
66
# File 'lib/ib/messages/incoming/order_status.rb', line 64

def local_id
  order_state.local_id
end

#order_stateObject



47
48
49
# File 'lib/ib/messages/incoming/order_status.rb', line 47

def order_state
  @order_state ||= IB::OrderState.new @data[:order_state]
end

#parent_idObject



56
57
58
# File 'lib/ib/messages/incoming/order_status.rb', line 56

def parent_id
  order_state.parent_id
end

#perm_idObject



60
61
62
# File 'lib/ib/messages/incoming/order_status.rb', line 60

def perm_id
  order_state.perm_id
end

#statusObject



70
71
72
# File 'lib/ib/messages/incoming/order_status.rb', line 70

def status
  order_state.status
end

#to_humanObject



74
75
76
# File 'lib/ib/messages/incoming/order_status.rb', line 74

def to_human
  "<OrderStatus: #{order_state}>"
end