Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTM financial data instead of last quarter data #143

Open
vvkorotkikh opened this issue Mar 15, 2023 · 2 comments
Open

TTM financial data instead of last quarter data #143

vvkorotkikh opened this issue Mar 15, 2023 · 2 comments

Comments

@vvkorotkikh
Copy link

vvkorotkikh commented Mar 15, 2023

I try to get quarterly fundamentals.

ticker = 'BRK-B'
yahoo_financials = YahooFinancials(ticker)#, concurrent=False, max_workers=1, country="US")
data = yahoo_financials.get_financial_stmts('quarterly', 'income')
data['incomeStatementHistoryQuarterly'][ticker][4]

The code above returns me data from last quarter
{'2022-12-31': {'normalizedIncome': -22819000000.0,
'otherIncomeExpense': 53598000000.0,
'interestExpenseNonOperating': 1139000000.0,
'totalRevenue': 92628000000.0,
'sellingGeneralAndAdministration': 25056000000.0,
'dilutedNIAvailtoComStockholders': -22819000000.0,
'minorityInterests': -761000000.0,
'pretaxIncome': -30576000000.0,
'netIncomeCommonStockholders': -22819000000.0,

Some of values are scraped from 'TTM' column ('dilutedNIAvailtoComStockholders', 'sellingGeneralAndAdministration', 'minorityInterests' etc.) from source
https://finance.yahoo.com/quote/BRK-B/financials?p=BRK-B
and some values are scraped from '12/30/2022' column ('Total Revenue').
Pls fix.
Безымянный

The same problem for 'BF-B', 'ACN' and some others.

@cd109
Copy link

cd109 commented Jun 16, 2023

You can try to remove the data starting with trailingxxx in FUNDAMENTALS_MAP in maps.py

image

@dubaleeiro
Copy link

Same problem here. Would appreciate a fix on this... Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants