bin/template in ib-ruby-0.4.22 vs bin/template in ib-ruby-0.5.0
- old
+ new
@@ -12,10 +12,10 @@
# Connect to IB TWS.
ib = IB::Connection.new
# Subscribe to TWS alerts/errors
-ib.subscribe(IB::Messages::Incoming::Alert) { |msg| puts msg.to_human }
+ib.subscribe(:Alert) { |msg| puts msg.to_human }
# Put your code here
# ...