bin/option_data in ib-ruby-0.6.1 vs bin/option_data in ib-ruby-0.7.0
- old
+ new
@@ -17,10 +17,10 @@
15 => IB::Symbols::Options[:z50],
17 => IB::Symbols::Options[:spy75],
19 => IB::Symbols::Options[:spy100]}
# First, connect to IB TWS.
-ib = IB::Connection.new
+ib = IB::Connection.new :client_id => 1112 # Arbitrary id to identify your script
## Subscribe to TWS alerts/errors
ib.subscribe(:Alert) { |msg| puts msg.to_human }
# Subscribe to Ticker... events. The code passed in the block will be executed when