get_quotes_single_symbol {charlesschwabapi}R Documentation

Get Quotes for Single Symbol

Description

Given the tokens object from the 'get_authentication_tokens' function and the symbol ID, return a data frame containing information about that symbol. 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_single_symbol(tokens, symbol_id, fields = NULL)

Arguments

tokens

token object from 'get_authentication_tokens' function (list).

symbol_id

symbol for the security of interest

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. The default is NULL, which is everything (string or vector).

Value

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

Author(s)

Nick Bultman, njbultman74@gmail.com, June 2024


[Package charlesschwabapi version 1.0.2 Index]