reqAccountUpdates {IBrokers}R Documentation

Request Account Updates

Description

Request and view account details from Interactive Brokers

Usage

reqAccountUpdates(conn, account = "1",
                  eventAccountValue,
                  eventPortfolioValue,
                  eventAccountTime,
                  CALLBACK, ...)

Arguments

conn A twsConnection object
account an account description - not used for most accounts
eventAccountValue callback function, if any
eventPortfolioValue callback function, if any
eventAccountTime callback function, if any
CALLBACK main receiver callback, if any
... additional args

Details

By default, for non-FA accounts, this returns the current login's account information.

This returns a data.frame with 4 columns. The first column is the name of the account value being returned. The second is the value associated with the specific name in column 1. The third column contains the currency, if applicable. The fourth contains the account the information applies to.

Value

A data.frame with key account information.

Author(s)

Jeffrey A. Ryan

References

Interactive Brokers API: http://www.interactivebrokers.com

Examples

## Not run: 
  tws <- twsConnect()
  reqAccountUpdates(tws)
  twsDisconnect(tes)
## End(Not run)

[Package IBrokers version 0.1-3 Index]