hjones20/fundamental-analysis ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python stock analysis tool for value investing. I want to pull company data from the FinancialModelingPrep API, download and clean the key financial statements and ratios, then screen stocks based on fundamentals I choose over a time period like the last 8 or 10 years.
It should let me narrow the list by exchange, minimum share price, sector, and industry, then calculate things like median or average ROE and other core stats so I can filter out weak companies. For any stock that passes, I want charts that show how stable its EPS, book value per share, ROE, current ratio, debt to equity, and dividend data have been over time when available.
I also want it to estimate intrinsic value using a discounted cash flow approach, including discount rate, terminal value, and a margin of safety price. Please make it practical to run on my own with clear inputs and outputs, and handle API changes or missing columns as gracefully as possible. Look up current API docs online if you need to.
Have a live product UI? Try website reverse