lib/ib-ruby/messages/outgoing/abstract_message.rb in ib-ruby-0.7.6 vs lib/ib-ruby/messages/outgoing/abstract_message.rb in ib-ruby-0.7.8
- old
+ new
@@ -34,10 +34,11 @@
# Most messages also contain (ticker, request or order) :id.
# Then, content of @data Hash is encoded per instructions in data_map.
def encode server
[self.class.message_id,
self.class.version,
- @data[:id] || @data[:ticker_id] || @data[:request_id]|| @data[:order_id] || [],
+ @data[:id] || @data[:ticker_id] || @data[:request_id] ||
+ @data[:local_id] || @data[:order_id] || [],
self.class.data_map.map do |(field, default_method, args)|
case
when default_method.nil?
@data[field]