sstrickx / yahoofinance-api

Java Client API for Yahoo Finance
MIT License
504 stars 221 forks source link

Null values from StockStats #186

Closed Dr-Corn-Inspector closed 2 years ago

Dr-Corn-Inspector commented 3 years ago

Getting Revenue, PEG, and EBITDA will return null, regardless of the stock.

Example:

Stock stock = YahooFinance.get("INTC");

System.out.println(stock.getStats().getRevenue());

will return null

eztam- commented 2 years ago

The used endpoint from Yahoo Finance (https://query1.finance.yahoo.com/v7/finance/quote?symbols=INTC) simply doesn't return the revenue. So it's not possible to get it. The code for this was also commented as part of #105 in StockQuotesQuery1V7Request#getStats(JsonNode).