Learn R Programming

charlesschwabapi (version 1.0.5)

get_account: Get Account Information for Specific Account

Description

Given the tokens object from the `get_authentication_tokens` function and the encrypted account ID, return the account information (positions, fundamentals, and general account information). The encrypted account ID can be found using the `get_account_numbers` function.

Usage

get_account(tokens, encrypted_account_id, fields = NULL)

Value

Returns a data frame containing the account information. This includes position information, a day trader flag, the account number, and more.

Arguments

tokens

token object from `get_authentication_tokens` function (list).

encrypted_account_id

encrypted ID of the account from `get_account_numbers` function (string).

fields

specific fields to be returned, one example being "positions" (string).

Author

Nick Bultman, njbultman74@gmail.com, July 2024