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



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

def client_id
  order_state.client_id
end

#local_idObject Also known as: order_id



68
69
70
# File 'lib/ib/messages/incoming/order_status.rb', line 68

def local_id
  order_state.local_id
end

#order_stateObject



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

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

#parent_idObject



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

def parent_id
  order_state.parent_id
end

#perm_idObject



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

def perm_id
  order_state.perm_id
end

#statusObject



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

def status
  order_state.status
end

#to_humanObject



78
79
80
# File 'lib/ib/messages/incoming/order_status.rb', line 78

def to_human
  order_state.to_human
end