yahoo-finance

Yahoo! Finance API, how to get historical intraday data for one particular day?

和自甴很熟 提交于 2019-12-04 02:50:43
I found an online article about how to download historical intraday data from Yahoo at : http://www.quantshare.com/sa-426-6-ways-to-download-free-intraday-and-tick-data-for-the-us-stock-market But how to get one particular day's historical intraday data for a stock ? For example how to get one-minute interval data for IBM on 2013-01-31 ? Besides Yahoo, is there any other place that has one particular day's historical intraday data for free ? You cannot retrieve a single, unique session from Yahoo's intraday feed. Unlike their end of day data provided by CSI, Yahoo only provides a maximum of 15

Saving multiple plots on a single pdf page using matplotlib

笑着哭i 提交于 2019-12-04 02:10:52
问题 I'm trying to save the graphs of all 11 sectors from sectorlist to 1 pdf sheet. So far the code below gives me a graph on a separate sheet (11 pdf pages). The daily return functions is the data I'm plotting. There are 2 lines on each graph. with PdfPages('test.pdf') as pdf: n=0 for i in sectorlist: fig = plt.figure(figsize=(12,12)) n+=1 fig.add_subplot(4,3,n) (daily_return[i]*100).plot(linewidth=3) (daily_return['^OEX']*100).plot() ax = plt.gca() ax.set_ylim(0, 100) plt.legend() plt.ylabel(

Downloading Stock quotes to App

限于喜欢 提交于 2019-12-03 21:32:35
I'm new to iOS programming and want to display stock quotes and stock details in the iPad app I'm designing. I am looking at two options Im looking at google finance or yahoo finance. How would I go about sending a url request to their sites and then handling the reply in Xcode? I see that yahoo have a YQL service but I can't wrap my head around how I would get it to work despite reading some yahoo documentation online so Im looking to avoid it. Ive had a look at the google api but I can't figure out how to integrate it and get it to request stock details. I've decided to go through the url

google finance api not working from 6/september/2017

半世苍凉 提交于 2019-12-03 17:50:39
问题 I was using google finance api to get the stock quotes and display the contents on my site. All of a sudden from 6/september/2017 this stopped working. The url i used to get the stock quotes is https://finance.google.com/finance/info?client=ig&q=SYMBOL&callback=?. Previously, i was using yahoo finance api and it was inconsistent. So, i switched over to google finance api. Could you please help me on this? Thanks, Ram 回答1: This url works. I think just the url changed from www.google.com to

Adding a Filter and Init Params Progmatically

末鹿安然 提交于 2019-12-03 17:17:36
I need to copy the contents of a web.xml to the WebAppInitializer.class (Java Configuration Class). I have copied the YahooFilter Class from web.xml (see code) but I am not sure how to add the init-params pragmatically. I have pasted the web.xml and snippet of the Java Configuration class below. Can somebody take a look and provide some feedback? <web-app> <display-name>sample</display-Aname> <filter> <filter-name>YOSFilter</filter-name> <filter-class>com.yahoo.yos.YahooFilter</filter-class> <!-- optional param - underlying oauth client class possible values: net.oauth.client

Retrieving stock updates using Yahoo Finance

佐手、 提交于 2019-12-03 09:01:04
Basically what i am trying do is retrieving stock quotes for specific company . In my code I am giving symbol of specific company( eg:FB ) in a textbox(symb) and when i click the button(getupdate) it should list out details regarding that specific stock which i enter the text box . Here's my code : <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script> <script> $(document).ready(function($){ $('getupdate').click(function() { var symbol = $('input[id=symb]').val(); \\For Example:FB var url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from

How to understand this raw HTML of Yahoo! Finance when retrieving data using Python?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 08:18:39
I've been trying to retrieve stock price from Yahoo! Finance, like for Apple Inc. . My code is like this:(using Python 2) import requests from bs4 import BeautifulSoup as bs html='http://finance.yahoo.com/quote/AAPL/profile?p=AAPL' r = requests.get(html) soup = bs(r.text) The problem is when I see raw HTML behind this webpage, the class is dynamic, see figure below. This makes it hard for BeautifulSoup to get tags. How to understand the class and how to get data? HTML of Yahoo! Finance page PS: 1) I know pandas_datareader.data, but that's for historical data. I want the real-time stock data; 2

How to get RealTime stock price using yahoo finance

给你一囗甜甜゛ 提交于 2019-12-03 08:04:45
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. <?php /** * Class to fetch stock data from Yahoo! Finance * */ class YahooStock { /** * Array of stock

Python pandas datareader no longer works for yahoo-finance changed url

南楼画角 提交于 2019-12-03 04:04:40
Since yahoo discontinued their API support pandas datareader now fails import pandas_datareader.data as web import datetime start = datetime.datetime(2016, 1, 1) end = datetime.datetime(2017, 5, 17) web.DataReader('GOOGL', 'yahoo', start, end) HTTPError: HTTP Error 401: Unauthorized is there any unofficial library allowing us to temporarily work around the problem? Anything on Quandl maybe? I found the workaround by "fix-yahoo-finance" in https://pypi.python.org/pypi/fix-yahoo-finance useful, for example: from pandas_datareader import data as pdr import fix_yahoo_finance data = pdr.get_data

stocks splitting api google or yahoo

白昼怎懂夜的黑 提交于 2019-12-03 03:58:54
问题 I am looking for a way to get stock splitting information. Using the yahoo stock API I can get all types of info on any symbol but I don't think I can get the split ratio or even whether it split. Does anyone know of a way of getting this info? 回答1: This is how the quantmod R package does it. The split information is in the "Dividend Only" CSV: http://ichart.finance.yahoo.com/x?s=IBM&a=00&b=2&c=1962&d=04&e=25&f=2011&g=v&y=0&z=30000 来源: https://stackoverflow.com/questions/6119867/stocks