Learn R Programming

charlesschwabapi (version 1.0.5)

get_quotes: Get Quotes

Description

Given the tokens object from the `get_authentication_tokens` function and the symbols of interest, return a data frame containing information about those symbols. Note that this function can return information that goes beyond a standard quote (for example, fundamental information can be returned). By default, everything is returned, but the specific information returned can be customized through the `fields` argument below.

Usage

get_quotes(tokens, symbols, fields = NULL, indicative = NULL)

Value

Returns a data frame containing information about the given symbols of interest.

Arguments

tokens

token object from `get_authentication_tokens` function (list).

symbols

symbols for quotes (vector).

fields

request for subset of data. Possible values are NULL, "all", "quote", "fundamental", "extended", "reference", or "regular". Note these can be combined in a vector or a string with a value can be used (string or vector).

indicative

include indicative symbol quotes or not for ETF requests. Possible values are "true" and "false" (string).

Author

Nick Bultman, njbultman74@gmail.com, June 2024