I would subscribe to the Google API offer, but it is no longer available.
This post offers the best list of financial data available from R that I have met on the Internet: http://www.r-bloggers.com/financial-data-accessible-from-r-part-iv/ .
But this is not an R message. In addition to these sources, I would completely recommend the TD Ameritrade Thinkorswim platform (www.thinkorswim.com). This is a trading platform with real-time free data in the US financial markets. You can open an account and save only one cent on it, if this is not required for the actual investment / trading.
In addition, I would recommend the Ninja Trader platform ( http://ninjatrader.com ), which offers free end-of-day historical data for US financial markets. You can export data from Ninja Trader to txt format, and then import it into R or Python, if necessary.
source share