Dear-
We all know how to download the 15-min delayed prices, as follows by R.
install.packages("quantmod")
library(quantmod)
NY <- new.env()
tickers <-c("^DJI","^GSPC", "^FTSE" , "MSFT")
getSymbols(tickers,from="2016-01-01")
NY$MSFT
Unfortunately, NOT possible to feed 1-min delayed, with above method.
*****************************************
However, we all now that we can see 1-min price at yahoo/finance at
http://finance.yahoo.com/q?s=MSFT&ql=1
Furthermore we can see the html source of the MSFT screen, by clicking right mouse, such as
view-source:http://finance.yahoo.com/q?s=MSFT&ql=1
*****************************************
My question is how we can feed the current (<= 1-min delayed) price of MSFT based on the above webpage.
Since we ALREADY SEE the 1-min price BY OUR EYE, I guess our computer can does it automatically for us.
If so, we can program to deliver current price of our watchlist (such as 300 equities), from 300 pieces of yahoo webpage to our local PC.
Is it called parsing or other kind of name?
Specifically speaking, suppose c:\watch.csv has dimension 300 by 1 and hope c:\watchresult.csv changes every minute, with dimension 300 by 2.
Of course first column is price, and second column is its time.
We all know how to download the 15-min delayed prices, as follows by R.
install.packages("quantmod")
library(quantmod)
NY <- new.env()
tickers <-c("^DJI","^GSPC", "^FTSE" , "MSFT")
getSymbols(tickers,from="2016-01-01")
NY$MSFT
Unfortunately, NOT possible to feed 1-min delayed, with above method.
*****************************************
However, we all now that we can see 1-min price at yahoo/finance at
http://finance.yahoo.com/q?s=MSFT&ql=1
Furthermore we can see the html source of the MSFT screen, by clicking right mouse, such as
view-source:http://finance.yahoo.com/q?s=MSFT&ql=1
*****************************************
My question is how we can feed the current (<= 1-min delayed) price of MSFT based on the above webpage.
Since we ALREADY SEE the 1-min price BY OUR EYE, I guess our computer can does it automatically for us.
If so, we can program to deliver current price of our watchlist (such as 300 equities), from 300 pieces of yahoo webpage to our local PC.
Is it called parsing or other kind of name?
Specifically speaking, suppose c:\watch.csv has dimension 300 by 1 and hope c:\watchresult.csv changes every minute, with dimension 300 by 2.
Of course first column is price, and second column is its time.
Last edited: