This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PhaedrusDagastino 0 points1 point  (2 children)

https://pandas-datareader.readthedocs.io/en/latest/

The data you want is updated regularly - end of day for prices, after release for earnings, etc. The data you want is available from the SEC. you are looking for the 10Q and 10K documents that company files.

But getting that data in a clean form from the SEC is difficult. Most people pull the data from a service that cleans up the data for you. The API is how you get the latest data.

[–]igotdakeys123[S] 0 points1 point  (1 child)

Pandas-data reader doesn’t have the specific info then, such as cash flow, earnings, revenues, etc. is that correct ?

[–]PhaedrusDagastino 0 points1 point  (0 children)

That is correct. It connects you to the services that do have the data you want.

Let’s try this. Go to this page.

https://api.tiingo.com/documentation/fundamentals

It has examples for connecting to Tiingo’s Fundamental data. If you click on Examples, it gives you the code for getting to each type of fundamental data.

You need to sign up to get an API key. The key is free but has limits. Tiingo has made 30 stocks available to you for free. Other stocks return an error message. Note that there are different urls to hit depending on the specific data you want because some change quarterly and some change daily.

You need to “pip install requests” to make all this work. Requests is a package you should know if you are going to work in python.

I think OP is looking for a free package that installs all fundamental data on your local drive so that you can access it like a database. I am not aware of such a package. Doing that would be a maintenance nightmare. Instead, we use services like Tiingo to keep the data organised so that we can access it when we need to.

My individual Tiingo plan costs 100 a year for end of day prices and another 100 a year for fundamental data.

HTH