get_quotes {charlesschwabapi}R Documentation

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)

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).

Value

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

Author(s)

Nick Bultman, njbultman74@gmail.com, June 2024


[Package charlesschwabapi version 1.0.2 Index]