yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

It is possible to fetch "Similar to"?

Open RitanMihai opened this issue 2 years ago • 1 comments

It is not an issue, however I do not know how to get an answer. I searched through the documentation and evaluated the data received from yf.Ticker(X), where X is the stock symbol for example "MAIN", but I found nothing.

I want something like:

ticker = yf.Ticker('MAIN')
similars = ticker.get_similar()
print(similars)
['PFLT','GAIN','ARCC','HRZN','HTGC']

I atacched a s.s to this part below: image

RitanMihai avatar May 21 '22 13:05 RitanMihai

I also asked this on stackoverflow. I did a workaround if anyone needs. https://stackoverflow.com/questions/72330223/scrap-yahoo-finance-similar-to-data-in-python-with-yfinance

RitanMihai avatar May 21 '22 20:05 RitanMihai