yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Add option to extract trailing data out of yahoo finance.

Open init-js opened this issue 2 years ago • 1 comments

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

init-js avatar Aug 01 '23 06:08 init-js

Thanks for implementing this. But can you move into dev branch instead of main? #1084

edit: And revert the changes to version.py

ValueRaider avatar Aug 01 '23 07:08 ValueRaider