Skip to content

Commit

Permalink
Respect --port option for historic_data_cli example
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Shen committed Jan 29, 2013
1 parent 624990e commit 2930097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/historic_data_cli
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ DATE_FORMAT = (opt["dateformat"] && opt["dateformat"].to_i) || 1
PORT = (opt["port"] && opt["port"]) || '4001'

# First, connect to IB TWS.
ib = IB::Connection.new :client_id => 1112 #, :port => 7496 # TWS
ib = IB::Connection.new :client_id => 1112, :port => PORT

# Subscribe to TWS alerts/errors
ib.subscribe(:Alert) { |msg| puts msg.to_human }
Expand Down

0 comments on commit 2930097

Please sign in to comment.