yahoo-finance

How to extract a value from the Yahoo Finance Cash Flow statement with Java (Android)?

徘徊边缘 提交于 2021-02-19 05:28:11
问题 This is a follow up to the solution to this question: How to extract data from HTML page source of (a tab within) a webpage? I am trying to do the same for Cash Flow Stmt at finance.yahoo.com/quote/AAPL/cash-flow?p=AAPL - using .getJSONObject("dispatcher") .getJSONObject("stores") .getJSONObject("QuoteSummaryStore") .getJSONObject("cashflowStatementHistory") .getJSONArray("cashflowStatements"); trying to extract the value of the key trailingFreeCashFlow - BUT, it failes with the error "No

Stock Quotes from Yahoo finance for Indian NSE, BSE

岁酱吖の 提交于 2021-02-18 19:18:05
问题 Following is my query using YQL, data is fetched using Yahoo finance, I am using the symbols for the stocks traded on the Indian NSE, BSE http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ("AIAENG.NS","ATULAUTO.NS")&env=http://datatables.org/alltables.env&format=json Strange thing is this query always return null data (Invalid data) for all the fields, even when the symbol that I am using is correct and can be used on the Yahoo finance for querying

Multithreading to Scrape Yahoo Finance

纵然是瞬间 提交于 2021-02-08 11:49:44
问题 I'm running a program to pull some info from Yahoo! Finance. It runs fine as a For loop, however it takes a long time (about 10 minutes for 7,000 inputs) because it has to process each request.get(url) individually (or am I mistaken on the major bottlenecker?) Anyway, I came across multithreading as a potential solution. This is what I have tried: import requests import pprint import threading with open('MFTop30MinusAFew.txt', 'r') as ins: #input file for tickers for line in ins: ticker_array

How to get ETF Financial information (e.g. NAV) from Yahoo (with Quantmod)?

百般思念 提交于 2021-02-07 09:51:22
问题 I know that I can use the quantmod package to get stock financial information easily from yahoo. For example, if I want to get the Volume, P/E ratio and Dividend Yield: > library(quantmod) > AAPL <- getSymbols("AAPL") Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : downloaded length 167808 != reported length 200 > what_metrics <- yahooQF(c("Name", + "Volume", + "P/E Ratio", + "Dividend Yield" + + )) > > getQuote(AAPL, what=what_metrics) Trade Time Name

How to get ETF Financial information (e.g. NAV) from Yahoo (with Quantmod)?

假装没事ソ 提交于 2021-02-07 09:50:15
问题 I know that I can use the quantmod package to get stock financial information easily from yahoo. For example, if I want to get the Volume, P/E ratio and Dividend Yield: > library(quantmod) > AAPL <- getSymbols("AAPL") Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : downloaded length 167808 != reported length 200 > what_metrics <- yahooQF(c("Name", + "Volume", + "P/E Ratio", + "Dividend Yield" + + )) > > getQuote(AAPL, what=what_metrics) Trade Time Name

Scraping data with vba from Yahoo finance

梦想的初衷 提交于 2021-02-05 12:20:32
问题 I need to read the closing price of a stock from the Yahoo Finance page. I had this answered before using Google Finance page, but the page is no longer available and I believe Google has completely changed its Finance page. I believe I can apply the same on Yahoo Finance with little modification. Let s say Yahoo Finance has the following code for the stock symobol AAPL (Apple): ![YAHOO WEBPAGE CODE FOR AAPL][1] I need to only extract the value 172.77. This was working perfectly with Google

YFinance - tickerData.info not working for some stocks

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-05 07:24:46
问题 import yfinance as yf #define the ticker symbol tickerSymbol = "AFT.NZ" #get data on this ticker tickerData = yf.Ticker(tickerSymbol) print(tickerData.info) This doesn't seem to work. IndexError: list index out of range Replace "AFT.NZ" with "MSFT" or "FPH.NZ" and it works fine. Going to the Yahoo website, can't see why it wouldn't have data on it. What's more confusing, is that replacing print(tickerData.info) with tickerDf = tickerData.history(period='max') does print some of the data. I

The ichart.finance.yahoo.com/table.csv no longer working

半腔热情 提交于 2021-01-27 12:09:21
问题 I tried to use both http and https as suggested by read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY") Not Working. But none of both are working. 回答1: The service is discontinued, read https://forums.yahoo.net/t5/Yahoo-Finance-help/Is-Yahoo-Finance-API-broken/td-p/250503 The Yahoo finance is now downloading historical data from https://query1.finance.yahoo.com/v7/finance/download/ using authorization token. 来源: https://stackoverflow.com/questions/44361361/the-ichart-finance-yahoo-com