yfinQuotes: Pull the most recent quote for a security/ies and specify the...

Description Usage Arguments Value

View source: R/quote.R

Description

Pull the most recent quote for a security/ies and specify the fields to pull

Usage

1
2
3
4
5
6
yfinQuotes(
  securities,
  regions = "US",
  fields = c("currency", "symbol", "longName", "regularMarketPrice", "bid", "ask",
    "marketState")
)

Arguments

securities

String or vector of strings, maximum 10 securities. Must be all from the same region.

fields

Default c("currency", "symbol", "longName", "regularMarketPrice", "bid", "ask", "marketState")

region

Default: US; selects the stock exchanges to get security from.

Value

Data frame of stock market quote data.


stevensolarz/rYahooFinance documentation built on Jan. 8, 2022, 7:44 p.m.