ranaroussi / yfinance

Download market data from Yahoo! Finance's API

Home Page:https://aroussi.com/post/python-yahoo-finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_shares_full returns more than one number of outstanding shares per date

laygr opened this issue · comments

Describe bug

When retrieving the number of outstanding shares via get_shares_full, for some dates I get two rows with very different numbers of outstanding shares.

For example, for MSFT, I would get the following result:
2024-05-30 00:00:00-04:00 7432309760
2024-05-31 00:00:00-04:00 7432309760
2024-05-31 00:00:00-04:00 7698290176

Notice how for 2024/05/31, it returns two numbers: 7432309760 and 7698290176.

Simple code that reproduces your problem

import yfinance as yf
m = yf.Ticker('MSFT')
m.get_shares_full(start='2024-05-28', end=None)

Debug log

DEBUG Entering get_shares_full()
DEBUG Exiting get_shares_full()

Bad data proof

No response

yfinance version

0.2.38

Python version

3.9.19

Operating system

Ubuntu

Any way to know which is correct guaranteed? Otherwise yfinance can't fix.