bin/option_data in ib-ruby-0.4.22 vs bin/option_data in ib-ruby-0.5.0

- old
+ new

@@ -32,14 +32,14 @@ puts @market[msg.data[:id]].description + ": " + msg.to_human end # Now we actually request market data for the symbols we're interested in. @market.each_pair do |id, contract| - ib.send :RequestMarketData, :id => id, :contract => contract + ib.send_message :RequestMarketData, :id => id, :contract => contract end puts "\nSubscribed to market data" puts "\n******** Press <Enter> to cancel... *********\n\n" gets puts "Cancelling market data subscription.." -@market.each_pair { |id, contract| ib.send :CancelMarketData, :id => id } +@market.each_pair { |id, contract| ib.send_message :CancelMarketData, :id => id }