yahooquery: Since about 8pm UTC yesterday, it started only returning 404 Errors
Describe the bug
Ticker("TSLA").quotes returns HTTP 404 Not Found
To Reproduce
#! /usr/bin/python3
import json
from yahooquery import Ticker
tickers = Ticker(["AAPL","TSLA"])
print(json.dumps(tickers.quotes,indent=3))
OUTPUT: HTTP 404 Not Found
Expected behavior Should return ticker data
Server (please complete the following information):
- OS: Alpine 3.16.5
- Python: 3.10.11
- Version: yahooquery v2.3.1
Additional context Service was working fine for a couple of months until about 8pm UTC 23rd May (yesterday)
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 33 (2 by maintainers)
For me, I get a list of 27 via
pricein about 0.85s - I can’t recall how long it took underquotes, but seems about the same to meI pull the list of tickers from a database & pass the entire list to
Tickerin one go.(this is not posted for you to critique my Python 🤣 )
I noticed it seems to just be the “tickers.quotes” request that is returning a 404 error. The other modules I’m using are still working, i.e. ticker.price, history, option chain, etc.
Looks the same as #178.
Last time the url can back online around 24hrs later…
For those looking for other variabale, the data.summary_detail and the data.key_stats are also still working. Here is a sample of the output fields for each… Summary Detail… fields: algorithm,ask,askSize,averageDailyVolume10Day,averageVolume,averageVolume10days,beta,bid,bidSize,coinMarketCapLink,currency,dayHigh,dayLow,dividendRate,dividendYield,exDividendDate,fiftyDayAverage,fiftyTwoWeekHigh,fiftyTwoWeekLow,fiveYearAvgDividendYield,forwardPE,fromCurrency,lastMarket,marketCap,maxAge,open,payoutRatio,previousClose,priceHint,priceToSalesTrailing12Months,regularMarketDayHigh,regularMarketDayLow,regularMarketOpen,regularMarketPreviousClose,regularMarketVolume,toCurrency,tradeable,trailingAnnualDividendRate,trailingAnnualDividendYield,trailingPE,twoHundredDayAverage,volume Key Stats: Fields: 52WeekChange,beta,bookValue,category,dateShortInterest,earningsQuarterlyGrowth,enterpriseToRevenue,enterpriseValue,floatShares,forwardEps,forwardPE,fundFamily,heldPercentInsiders,heldPercentInstitutions,impliedSharesOutstanding,lastDividendDate,lastDividendValue,lastFiscalYearEnd,lastSplitDate,lastSplitFactor,legalType,maxAge,mostRecentQuarter,netIncomeToCommon,nextFiscalYearEnd,pegRatio,priceHint,priceToBook,profitMargins,SandP52WeekChange,sharesOutstanding,sharesPercentSharesOut,sharesShort,sharesShortPreviousMonthDate,sharesShortPriorMonth,shortPercentOfFloat,shortRatio,trailingEps
I’m just getting the 404 error as well. From Canada. Also seems random.
FYI I’m in Connecticut, USA