google-finance

Download history stock prices automatically from yahoo finance in python

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 15:06:55
Is there a way to automatically download historical prices of stocks from yahoo finance or google finance (csv format)? Preferably in Python. Short answer: Yes. Use Python's urllib to pull the historical data pages for the stocks you want. Go with Yahoo! Finance; Google is both less reliable, has less data coverage, and is more restrictive in how you can use it once you have it. Also, I believe Google specifically prohibits you from scraping the data in their ToS. Longer answer: This is the script I use to pull all the historical data on a particular company. It pulls the historical data page

How to create a stock quote fetching app in python

99封情书 提交于 2019-11-28 04:35:45
I'm quite new to programming in Python . I want to make an application which will fetch stock prices from google finance . One example is CSCO (Cisco Sytems) . I would then use that data to warn the user when the stock reaches a certain value . It also needs to refresh every 30 seconds . The problem is I dont have a clue how to fetch the data! Anyone have any ideas? This module comes courtesy of Corey Goldberg . Program: import urllib import re def get_quote(symbol): base_url = 'http://finance.google.com/finance?q=' content = urllib.urlopen(base_url + symbol).read() m = re.search('id="ref

Alternatives to the Yahoo Finance API? [closed]

拟墨画扇 提交于 2019-11-28 03:49:51
Yahoo finance recently discontinued their API. I have been looking for alternatives. The ones I've found so far are Google Finance and Quandl. Google Finance was deprecated in 2011 but still appears to work somewhat. However, there is little to no documentation, and I need to pull dividend data which I was unable to find. Quandl appears to work well but the data is spread across multiple databases which makes getting appropriate access timely and costly. Does anyone know of any other viable alternatives? Alpha Vantage have real-time intraday as well as historical daily time series in JSON

Reading the values of cells that summarize Google Finance data results via Apps Script

青春壹個敷衍的年華 提交于 2019-11-28 02:29:10
Apps Script seems to be unable to deal with a cell that uses the average formula, when the average is over Google Finance data: Consider that column A is full of data from Google Finance. Then you type into cell B1 =average(A1:A100) . Lets assume the average is 5 and as such cell, B1 shows 5. Great, except that using the following script will fail: var AveResult = spreadsheet.getRange('B1').getValue(); ----> The log show a #DIV/0! error On the other hand, if you overwrite the formula in B1 and simply type in a 5 , then it works perfectly: var AveResult = spreadsheet.getRange('B1').getValue();

How to create a stock quote fetching app in python

我们两清 提交于 2019-11-27 05:20:27
问题 I'm quite new to programming in Python . I want to make an application which will fetch stock prices from google finance. One example is CSCO (Cisco Sytems) . I would then use that data to warn the user when the stock reaches a certain value . It also needs to refresh every 30 seconds . The problem is I dont have a clue how to fetch the data! Anyone have any ideas? 回答1: This module comes courtesy of Corey Goldberg. Program: import urllib import re def get_quote(symbol): base_url = 'http:/

Alternatives to the Yahoo Finance API? [closed]

谁说胖子不能爱 提交于 2019-11-27 00:11:35
问题 Yahoo finance recently discontinued their API. I have been looking for alternatives. The ones I've found so far are Google Finance and Quandl. Google Finance was deprecated in 2011 but still appears to work somewhat. However, there is little to no documentation, and I need to pull dividend data which I was unable to find. Quandl appears to work well but the data is spread across multiple databases which makes getting appropriate access timely and costly. Does anyone know of any other viable

Reading the values of cells that summarize Google Finance data results via Apps Script

老子叫甜甜 提交于 2019-11-26 18:40:41
问题 Apps Script seems to be unable to deal with a cell that uses the average formula, when the average is over Google Finance data: Consider that column A is full of data from Google Finance. Then you type into cell B1 =average(A1:A100) . Lets assume the average is 5 and as such cell, B1 shows 5. Great, except that using the following script will fail: var AveResult = spreadsheet.getRange('B1').getValue(); ----> The log show a #DIV/0! error On the other hand, if you overwrite the formula in B1

How can I get stock quotes using Google Finance API?

只谈情不闲聊 提交于 2019-11-26 16:51:21
I'm looking for access to financial data from Google services. I found this URL that gets the stock data for Microsoft. What are all the possible parameters that Google allows for this kind of HTTP request? I'd like to see all the different information that I could get. cletus There's a whole API for managing portfolios. *Link removed. Google no longer provides a developer API for this. Getting stock quotes is a little harder. I found one article where someone got stock quotes using Google Spreadsheets. You can also use the gadgets but I guess that's not what you're after. The API you mention

Alternative to google finance api [closed]

梦想与她 提交于 2019-11-26 02:21:59
I wanted to use Google Finance API to get stock data about the company but this API is deprecated since 2011/26/05. What do you use as free API to get stock data in real time? Updating answer a bit 1. Try Alpha Vantage API For beginners you can try to get a JSON output from query such as https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo DONT Try Yahoo Finance API (it is DEPRICATED or UNAVAILABLE NOW). Here is a link to previous Yahoo Finance API discussion on StackOverflow . Here's an alternate link to Yahoo Finance API posted on Google Code. For beginners,

Alternative to google finance api [closed]

青春壹個敷衍的年華 提交于 2019-11-26 01:09:40
问题 I wanted to use Google Finance API to get stock data about the company but this API is deprecated since 2011/26/05. What do you use as free API to get stock data in real time? 回答1: Updating answer a bit 1. Try Alpha Vantage API For beginners you can try to get a JSON output from query such as https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo DONT Try Yahoo Finance API (it is DEPRICATED or UNAVAILABLE NOW). Here is a link to previous Yahoo Finance API