bin/option_data in ib-ruby-0.7.3 vs bin/option_data in ib-ruby-0.7.4
- old
+ new
@@ -1,13 +1,10 @@
#!/usr/bin/env ruby
#
-# This script connects to IB API and subscribes to market data for specific symbols
+# This script subscribes to market data for a list of Options
-require 'pathname'
-LIB_DIR = (Pathname.new(__FILE__).dirname + '../lib/').realpath.to_s
-$LOAD_PATH.unshift LIB_DIR unless $LOAD_PATH.include?(LIB_DIR)
-
require 'rubygems'
+require 'pathname'
require 'bundler/setup'
require 'ib-ruby'
# Definition of what we want market data for. We have to keep track of what ticker id
# corresponds to what symbol ourselves, because the ticks don't include any other