Fetch the quote for a given stock code from Yahoo Finance API or Rediff Money.

nse_stock_quote(stock_code, source = c("yahoo", "rediff"))

Arguments

stock_code

Symbol of the stock.

source

Yahoo Finance API or Rediff Money.

Examples

# \donttest{ nse_stock_quote("infy")
#> [1] 1339.3
nse_stock_quote("infy", source = "rediff")
#> [1] 1339.3
# }