twsConnect {IBrokers} | R Documentation |
Connect or disconnect to the Trader Workstation (TWS).
twsConnect(port=7496,clientID=1) twsDisconnect(con)
port |
the port that the TWS is listening on |
clientID |
the unique client id to associate with |
con |
a valid twsConnection object |
Returns a twsConnection
object for use in
subsequent TWS API calls.
A twsConnection
object.
While it is not strictly required to disconnect via twsDisconnect
it is probably advisable.
Jeffrey A. Ryan
Interactive Brokers: www.interactivebrokers.com
## Not run: tws <- twsConnect() twsDisconnect(tws) ## End(Not run)