yfinance
yfinance copied to clipboard
Add option to extract trailing data out of yahoo finance.
Adds ticker.ttm_income_stmt and ticker.ttm_cashflow
Unlike the yahoo website, the API outputs two timestamped columns. One column is dated from the last annual financial release, and the other one is dated from the last quarterly financial report. The TTM calculation on the website appears to be using the yearly information. The calculation appears to be slightly different, otherwise.
https://github.com/ranaroussi/yfinance/discussions/1596
Thanks for implementing this. But can you move into dev branch instead of main? #1084
edit: And revert the changes to version.py