I am trying to do some market analysis using R. Is there any way to get real time stock quotes at minutely intervals using a package? I am familiar with quantmod and have used the getSymbols() function, however, all data I am able to mine is 15 minutes old. Thank you.
Real time stock price R
12.8k views Asked by user3731327 At
2
There are 2 answers
2
On
IB would probably be best for real-time stock data. You won't need to pay for it (*), but last time I looked you will need to open an account with a minimum amount of real money.
There is an R package: http://cran.r-project.org/web/packages/IBrokers/index.html
There is a vignette on getting real-time data, but it was last updated in 2009, so I would go with the general vignette: http://cran.r-project.org/web/packages/IBrokers/vignettes/IBrokers.pdf which was last update sep 2014.
(*: Not strictly true: for some exchanges you will need to pay an extra exchange fee.)
My
qmao
package hasgetQuote
"methods" for both BATS and google which are both near real timegetQuote.bats
has a few options for how you want the data to print:There are also plot methods
And, if you're still reading, there is a shiny app included in the package so you can make those "plots" update in real time. Just run this: