yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

[FEATURE REQUEST] allow supression of "delisted" tickers

Open elibroftw opened this issue 5 years ago • 1 comments

when using yf.download, have a keyword parameter that will allow us to hide "symbol may be delisted" errors among other errors.

proposal

Using hide_errors=set() or suppress_errors=set() you should check if the error has been specified to be suppressed and then output only if it has not been suppressed

elibroftw avatar Apr 20 '20 15:04 elibroftw

A complementary solution would be to have this exception have a specific type, e.g., TickerNotFoundError, to ease filtering. Currently it is an Exception which forces to perform some brittle string matching to filter these out.

rgeronimi avatar Apr 23 '24 09:04 rgeronimi