How do I extract minute wise stocks data

Currently I am using the below code to extract daily wise stocks data. But I need to minute wise data, How do I go for it? Please guide

         df1 <-"SAIL.NS", src = "yahoo", from = "2018-01-01", to = Sys.Date(),verbose = F, auto.assign = T))

That is not an option in quantmod (BTW you have to specify the libraries you are using when providing a reprex) and as far as I know there is no API wrapper in R for minute-level intraday stock data, your best chance would be to check if there is on online service that provides that periodicity through an API and make direct API requests using httr package or something similar.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.