Sha256: 9d3f9764011e9aaf154bafb0c1916e2f3c3ff21fda016793b4ff49bfc52cb388
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
#!/usr/bin/env ruby # # This script receives Financial Adviser and Managed Accounts info require 'rubygems' require 'pathname' require 'bundler/setup' require 'ib-ruby' # First, connect to IB TWS. ib = IB::Connection.new :client_id => 1112 #, :port => 7496 # TWS # Subscribe to TWS alerts/errors and FA/managed account info ib.subscribe(:Alert, :ManagedAccounts, :ReceiveFA) { |msg| puts msg.to_human } ib.send_message :RequestFA ib.send_message :RequestManagedAccounts ib.wait_for :Alert puts "\n******** Press <Enter> to cancel... *********\n\n" STDIN.gets
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.7.4 | bin/fa_accounts |