Fetch the quote for a given stock code from Yahoo Finance API or Rediff Money.
nse_stock_quote(stock_code, source = c("yahoo", "rediff"))
stock_code | Symbol of the stock. |
---|---|
source | Yahoo Finance API or Rediff Money. |
# \donttest{ nse_stock_quote("infy")#> [1] 1339.3nse_stock_quote("infy", source = "rediff")#> [1] 1339.3# }