Create a moving graph every minute that predicts the stock price after 1 minute with a csv file updated every minute with R

4291 views python
-1

I created the Python code to update the csv file by fetching the stock price of the company every minute using the Securities API. The current stock price is updated every minute, and the data should be brought to R and the price one minute later. Please help me. It is not easy to have to read and predict the csv file data every minute in R. Please help me...I also tried the taskschedulerR package but it is not easy

answered question

Kindly add up sample code and exact problem you are facing. You may follow this stackoverflow.com/help/how-to-ask guideline which may help people to answer you quickly.

1 Answer

13

You could also use Sys.sleep other than taskscheduler

for(i in 1:10) {
  Sys.sleep(60)
  data <- read.csv("data.csv")
}

posted this

Have an answer?

JD

Please login first before posting an answer.