Sha256: 623526acbe18d4f14253300a9f2be8492047ef8d82151a80ca8e3a82b1dd72fa
Contents?: true
Size: 450 Bytes
Versions: 10
Compression:
Stored size: 450 Bytes
Contents
#!/usr/bin/env ruby # # Your script description here... require 'rubygems' require 'bundler/setup' $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'ib-ruby' # First, connect to IB TWS. Arbitrary :client_id is used to identify your script ib = IB::Connection.new :client_id => 1112 #, :port => 7496 # TWS # Subscribe to TWS alerts/errors ib.subscribe(:Alert) { |msg| puts msg.to_human } # Put your code here # ...
Version data entries
10 entries across 10 versions & 1 rubygems