Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 2.41 KB

README.MD

File metadata and controls

34 lines (23 loc) · 2.41 KB

My Python scripts to screen stocks using Financial Modeling Prep and other sources 🔍

These are value investing related Python scripts I wrote to search and filter stock-related metrics I like.

Working Python scripts relying on Financial Modeling Prep

  • upendra-screen - My six-step screen that programmatically determines ratios mentioned in Professor Kenneth Jeffrey Marshall's book Good Stocks Cheap
  • upendra-simple-dcf - Calculates present value of future cash flow using the DCF model. Inputs include discount rate, cash flow growth in best, worst and normal scenarios, margin of safety and more.
  • fprep-basic - Get started by making a basic Financial Modeling Prep call, view the output and extract a value you like
  • fprep-roce_best - Calculations for getting Return on Capital Employed (ROCE) of any company that meets a threshold along with other metrics like average ROCE over the years and my own magic number to compute ROCE growth, with output sorted in descending order
  • fprep-52week-low - Identifies companies that are close to their 52 week lows, meeting a threshold, with output sorted from closest to low
  • fprep-dcf-discount - Identifies companies that are trading at a discount compared to their DCF-based intrinsic value, with output sorted in descending order
  • list-of-companies - Gets a list of companies that are available with Financial Modeling Prep

Buy or Hold Strategy

  • buy_or_hold - This Python script analyzes S&P 500 data from 1999 to early 2020 (supplied as a CSV file) and figures out if buying after a threshold (%) drop in the markets is better or if dollar cost averaging is better.

Other Methods from Aug, 2019 (may be obsolete):

Running Locally 💻

  • Clone this project, then run the Python scripts using your IDE or the python command.

Built using 🧰