sstrickx / yahoofinance-api

Java Client API for Yahoo Finance
MIT License
498 stars 219 forks source link

Not sure #187

Closed amandoee closed 2 years ago

amandoee commented 2 years ago

YahooFinance.get("");

"get" is underlined in red, and says "Unhandled exception: java.io.IOException"

AdampBoucher commented 2 years ago

Late writing, just got it to work for me, you want to import the java.io.IOException library. This is everything I imported to get it to work: import yahoofinance.Stock; import yahoofinance.YahooFinance; import java.io.IOException; import java.math.BigDecimal;