yahoo-finance

Programmatic access to detailed historical financial data [closed]

我们两清 提交于 2019-12-18 10:29:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . I know that Yahoo has a great API for accessing detailed financial metrics about a company documented at http://www.gummy-stuff.org/Yahoo-data.htm. Yahoo also provides historical pricing data, documented at http://code.google.com/p/yahoo-finance-managed/wiki/csvHistQuotesDownload. However, I'm trying to find a

How to Access Yahoo Finance YQL query with historical data

安稳与你 提交于 2019-12-17 22:16:40
问题 I'm new to YQL. Perhaps this is very trivial, but I couldn't quite figure this out. I know, for instance, how to query current stock data from Yahoo/YQL using the YQL console: http://developer.yahoo.com/yql/console/ with the query string: select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT") However, what if I want, say, the same data from yesterday, or a week ago? I tried things such as select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT"

Yahoo Finance API changes (2017)

半腔热情 提交于 2019-12-17 10:39:10
问题 Requesting data from Yahoo Finance seems to have changed or is now blocked. The request below for commodity data no longer works as of May 2017. Does anyone know if there is a new way to make this request? http://chartapi.finance.yahoo.com/instrument/1.0/GCQ17.CMX/chartdata;type=quote;range=10d/csv/ 回答1: First, the old Yahoo finance iChart download is gone for good. In one of the forum posts, a Yahoo employee has confirmed that the free EOD data has been terminated, and will not be

Is get.hist.quote() still returning data with source=yahoo finance?

≯℡__Kan透↙ 提交于 2019-12-13 13:39:04
问题 HNY. As the question in the subject line implies, I'm getting errors trying to use the tseries package function get.hist.quote() . Can anyone shed light on my calling it incorrectly, or in a change of its signature/functionality? I noticed these errors starting at my work yesterday. Today on my home machine, same issue. Same results for various combinations of symbol, start/end dates, and granularity (day vs month). Here's an example: > spy = get.hist.quote(instrument= 'SPY', start = "2000-01

How to get RealTime stock price using yahoo finance

倾然丶 夕夏残阳落幕 提交于 2019-12-13 11:37:03
问题 I have several requirement which are listed below. Get Real Time stock price without page refresh or ajax. (ie. yahoo finance, they get latest stock price without page refresh and ajax call) Get stock price from as much as stock market like BSE, NSC etc.. Right now using following code i am able to get stock price but either i have to refresh the page or call to ajax and in both case it take 20 to 30 seconds but in many finance site they can update price by each second without using ajax. <

Yahoo-Finance module doesn't work anymore? [duplicate]

☆樱花仙子☆ 提交于 2019-12-13 08:43:21
问题 This question already has answers here : Yahoo Finance URL not working (24 answers) Closed 2 years ago . I've been using the yahoo finance module in python. I put the project down for the last couple months and just started it up again. Unfortunately it doesn't seem that there is anything behind the yahoo finance module anymore! I run the sample code from the pypi documents and get nothing back. >>> from yahoo_finance import Share >>> yahoo = Share('YHOO') >>> print yahoo.get_open() None >>>

Extracting Numbers from Yahoo Financial statement, willing to pay some money through Pay Pal

陌路散爱 提交于 2019-12-13 07:56:18
问题 I am trying to extract financial data from yahoo finance using python. Below there is a link to an image that shows in circles which data I am trying to retrieve. It has the organization of the data table however I do not know where to begin with the givens shown in the picture. This is the image of the code location of the numbers I'm trying to extract from yahoo finance, with the table name and td tickers. I realize that I must somehow use the td tickers to find the numbers that I need for

ProgrammingError: (1064…)

≯℡__Kan透↙ 提交于 2019-12-13 04:25:07
问题 I think this my seem elementary to a lot of people and it likely is, however, i am stuck. I am taking some data from Yahoo and attempting to insert it into Mysql through python which i have done on many occassions...apart from this morning. Here is the code... result = ystockquote.get_price_book_ratio('aap') cursor.execute("""UPDATE uk SET pricebook = %s, WHERE ID = %s""", (result,6)) I get this error for some reason ProgrammingError: (1064, "You have an error in your SQL syntax; check the

Charting with Candlestick_OHLC

徘徊边缘 提交于 2019-12-12 19:23:47
问题 import pandas as pd import numpy as np from matplotlib.finance import candlestick_ohlc import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as mticker import io import datetime import urllib import urllib.request %matplotlib notebook urlToVisit = 'http://chartapi.finance.yahoo.com/instrument/1.0/GOOG/chartdata; type=quote;range=1y/csv' with urllib.request.urlopen(urlToVisit) as response: sourcePage = response.read().decode('utf-8') df = pd.read_csv(io

Yahoo Finance API .get_historical() not working python

早过忘川 提交于 2019-12-12 17:06:07
问题 So I recently downloaded the yahoo_finance API and its version 1.4.0. I got it a few days ago, and the .get_historical() was working fine. Now however, it doesn't. Heres what its doing: import yahoo_finance as yf apple=yf.Share('AAPL') apple_price=apple.get_price() print apple.get_historical('2016-02-15', '2016-04-29') The error I get is:YQLResponseMalformedError: Response malformed. Is there a bug in the API or am I forgetting something? 回答1: The Yahoo Stock Price API doesn't work anymore,