rib | R Documentation |
Several convenience functions for connecting synchronously to the TWS.
executions(port = 7496, clientId = 1)
order_status(port = 7496, clientId = 1)
port |
integer |
clientId |
integer |
The functions follow the same pattern: connect to the TWS, send requests, receive and process results, and disconnect. Results are typically arranged as data frames.
Warning: these functions are very experimental, and returned results may change.
A data.frame
. If there are no executions,
orders or positions, the functions return NULL
invisibly.
Enrico Schumann
https://www.interactivebrokers.com/campus/ibkr-api-page/twsapi-doc/
ib_hist_data
## Functions require an account with Interactive Brokers
## and a running TWS.
executions(port = 7496)
## fetch details for contract via ISIN + market
contr <- rib::Contract
contr$secIdType <- "ISIN"
contr$secId <- "DE0005557508"
contr$exchange <- "IBIS"
contr <- contract_details(contr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.