Download history stock prices automatically from yahoo finance in python

When you’re going to work with such time series in Python, pandas is indispensable. And here’s the good news: it comes with a historical data downloader for Yahoo: pandas.io.data.DataReader. from pandas.io.data import DataReader from datetime import datetime ibm = DataReader(‘IBM’, ‘yahoo’, datetime(2000, 1, 1), datetime(2012, 1, 1)) print(ibm[‘Adj Close’]) Here’s an example from the pandas … Read more

How can I get stock quotes using Google Finance API?

The Google Finance Gadget API has been officially deprecated since October 2012, but as of April 2014, it’s still active. It is completely dead as of March 2022. http://www.google.com/finance/info?q=NASDAQ:GOOG http://www.google.com/finance/info?q=CURRENCY:GBPUSD http://finance.google.com/finance/info?client=ig&q=AAPL,YHOO You can also get charts: https://www.google.com/finance/getchart?q=YELP Note that if your application is for public consumption, using the Google Finance API is against Google’s terms … Read more