lib/ib/messages/incoming/open_order.rb in ib-ruby-0.9.0 vs lib/ib/messages/incoming/open_order.rb in ib-ruby-0.9.1
- old
+ new
@@ -72,18 +72,32 @@
class OpenOrder
# Accessors to make OpenOrder API-compatible with OrderStatus message
- def local_id
+ def client_id
+ order.client_id
+ end
+
+ def parent_id
+ order.parent_id
+ end
+
+ def perm_id
+ order.perm_id
+ end
+
+ def local_id
order.local_id
end
alias order_id local_id
def status
order.status
end
+
+ # Object accessors
def order
@order ||= IB::Order.new @data[:order].merge(:order_state => order_state)
end