Class: IB::Messages::Incoming::OrderStatus
- Defined in:
- lib/ib/messages/incoming/order_status.rb
Instance Method Summary collapse
-
#client_id ⇒ Object
Accessors to make OpenOrder and OrderStatus messages API-compatible.
- #local_id ⇒ Object (also: #order_id)
- #order_state ⇒ Object
- #parent_id ⇒ Object
- #perm_id ⇒ Object
- #status ⇒ Object
- #to_human ⇒ Object
Instance Method Details
#client_id ⇒ Object
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_id ⇒ Object 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_state ⇒ Object
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_id ⇒ Object
56 57 58 |
# File 'lib/ib/messages/incoming/order_status.rb', line 56 def parent_id order_state.parent_id end |
#perm_id ⇒ Object
60 61 62 |
# File 'lib/ib/messages/incoming/order_status.rb', line 60 def perm_id order_state.perm_id end |
#status ⇒ Object
70 71 72 |
# File 'lib/ib/messages/incoming/order_status.rb', line 70 def status order_state.status end |
#to_human ⇒ Object
74 75 76 |
# File 'lib/ib/messages/incoming/order_status.rb', line 74 def to_human "<OrderStatus: #{order_state}>" end |