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
56 57 58 |
# File 'lib/ib/messages/incoming/order_status.rb', line 56 def client_id order_state.client_id end |
#local_id ⇒ Object 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_state ⇒ Object
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_id ⇒ Object
60 61 62 |
# File 'lib/ib/messages/incoming/order_status.rb', line 60 def parent_id order_state.parent_id end |
#perm_id ⇒ Object
64 65 66 |
# File 'lib/ib/messages/incoming/order_status.rb', line 64 def perm_id order_state.perm_id end |
#status ⇒ Object
74 75 76 |
# File 'lib/ib/messages/incoming/order_status.rb', line 74 def status order_state.status end |
#to_human ⇒ Object
78 79 80 |
# File 'lib/ib/messages/incoming/order_status.rb', line 78 def to_human order_state.to_human end |