get_quotes_single_symbol: Get Quotes for Single Symbol

View source: R/get_quotes_single_symbol.R

get_quotes_single_symbolR 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


charlesschwabapi documentation built on April 4, 2025, 2:19 a.m.