Description Usage Arguments Value Examples
Establish a connection to TWS
1 2 3 4 5 6 7 8 9 | tws_connect(clientId = 1L, host = "127.0.0.1", port = 7497,
verbose = TRUE, timeout = 5, blocking = .Platform$OS.type ==
"windows")
is_tws_connection(x)
tws_disconnect(tws_con)
is_tws_connected(tws_con)
|
clientId |
|
host |
Default connection is 127.0.0.1 for the trade work station |
port |
Default connection is to the paper trading account on port 7497. Live connection to tws is on port 7496. For the IB gateway the live port is 4001 and the paper trading port is 4002. |
verbose |
|
timeout |
|
blocking |
A tws_con object.
1 2 3 4 5 | ## Not run:
tws <- tws_connect()
tws_disconnect(tws)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.