Ljupch0 / yfinance

Tidy Financial Statement Data in R. Via the Yahoo Finance API.
31 stars 7 forks source link

Errors from get_price() #11

Closed tian-y closed 1 year ago

tian-y commented 1 year ago

I could not get the quote of a ticker yfinance::get_price("AAPL") and I got this return:

Warning messages: 1: replacing previous import ‘purrr::flatten’ by ‘jsonlite::flatten’ when loading ‘yfinance’ 2: In safe_download(vector = ticker, proto_function = get_price_proto) : There were ERRORS while downloading data for these items: AAPL. Please check if you have the correct ticker. The vector of errored items and error messages can be accessed as attributes of the returned dataframe - attributes(df).

R version 4.1.2 (2021-11-01) -- "Bird Hippie"

Has anyone else encountered similar issues?

Ljupch0 commented 1 year ago

API is down, so there's nothing I can do. What kind of data are you looking for? In get_prices you had closing price I believe, you can also get historical and current price data from the quantmod package

https://query2.finance.yahoo.com/v10/finance/quoteSummary/AAPL?modules=price

tian-y commented 1 year ago

API is down, so there's nothing I can do. What kind of data are you looking for? In get_prices you had closing price I believe, you can also get historical and current price data from the quantmod package

https://query2.finance.yahoo.com/v10/finance/quoteSummary/AAPL?modules=price

Thanks. quantmod::getQuote("AAPLE") is also not working.

Based on this discussion, I think the issue is related to the GDPR regulation in EU countries. It also doesn't seem to be fixable at the moment.