Skip to content

dllllb/finexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple demo of applying fundamentals for stock selection

See demo notebook

Datasets

SimFin

SimFin dataset is used for analysis. It contains:

  • Daily stock prices and dividends (dividends column is not empty for payment dates)
  • Trailing Twelve Months (TTM) financial statements and financial ratios, where figures are calculated by summing four trailing quaterly reports are available
  • Daily figures for price-dependent financial ratios

pystock-data

pystock-data (github) can be used as an alternative dataset, but additional pre-processing steps are required. The data is available for US companies for 2009-2017 years. The data is stored in archive files inside the GitHub repo.

To calculate daily price-dependent ratios, like price to earnings, trailing twelve months (TTM) financial ratios like earnings can be calculated from the 10-Q / 10-K company reports. Then, daily price-dependent ratios can be calculated using the latest available TTM value.

pystock-crawler (github) CLI tool was used to crawl fundamentals from 10-Q and 10-K filings (XBRL) on SEC EDGAR and daily prices from Yahoo Finance. Dividend data from Yahoo Finance is not included, dividends from 10-Q and 10-K filings are included. An alternative way to abtain dvidends is to redownload daily stock prices using yfinance (github), since it downloads dividend history column.

About

A simple demo of applying fundamentals for stock selection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors