dpguthrie / dpguthrie/yahooquery
balance_sheet ignoring 'trailing=True' (while cash_flow and income_statement do take it into account).
- Dominant language
- Python
- Stars
- 920
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I assume this is a bug rather than a feature request.
It seems that while when adding 'trailing=True' for cash_flow and income_statement at the TTM row, for balance_sheet it pretty much seems to ignore it (and the alternative is to have 2 calls, the second one being balance_sheet with frequency='q' in order to calculate manually the TTM line.
Not sure if this is a bug (ignoring the 'trailing=True') or a feature request, but I think it would be good (if not too hard) to make it consistent with the other reports and 'save' the need for the manual calculation after issuing a second call for the quarterly data.
```
yq = Ticker(ticker)
yq_cashflow = yq.cash_flow(trailing=True)
yq_income = yq.income_statement(trailing=True)
yq_balance = yq.balance_sheet(trailing=True)
```
**Desktop (please complete the following information):**
I used Windws11, Python 3.8, yahooquery.__version__ = 2.2.15
Contributor guide
Assessment
This issue has not been assessed yet.