Up until now I have been using the yahoo finance api which provides lots of data already that I can use for my analysis. Unfortunately I need the historical number of outstanding shares for multiple calculations including the historical market capitalization. Useful would also be the bid ask spread but that is not the focus here. I am writing my project in python and ideally want to pass a function the stock symbols. Using the stock symbols, the function would return the monthly market capitalizations reaching as far back as 2013
I have tried via the yahoo finance api but that only provides the current markt cap. Haven't found solutions via alpha vantage either and want to avoid paying for access. University Databases don't seem to provide the necessary information and are slow to access.
If any of you have some experience in that area, help would be greatly appreciated.
Thanks a lot :)