yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Retrieved annual cash flow of TCEHY is inconsistent with website

Open xwu64 opened this issue 4 years ago • 9 comments

Website:

website

Retrieved: retrieved

For example, the operating cash flow in 12/31/2020 is 1.94119e8 instead of 1.94119e11.

Anyone meet the same issue?

xwu64 avatar Dec 21 '21 17:12 xwu64

@xwu64 Can you provide a code snippet to reproduce the erroneous results?

eabase avatar Dec 30 '21 15:12 eabase

Sorry for missing code. I'm using example code shown in the README file.

import yfinance as yf

tcehy = yf.Ticker("TCEHY")
print(tcehy.cashflow)

xwu64 avatar Dec 30 '21 15:12 xwu64

@asafravid I wonder if this is a similar problem as in #903. Perhaps we're searching the wrong path here again?

eabase avatar Dec 30 '21 16:12 eabase

@xwu64 Can you check if the correct one is present in this table, when using t.quarterly_cashflow, instead?

eabase avatar Dec 30 '21 16:12 eabase

@xwu64 Can you check if the correct one is present in this table, when using t.quarterly_cashflow, instead?

@eabase definitely looks similar

asafravid avatar Dec 30 '21 17:12 asafravid

@xwu64 Can you check if the correct one is present in this table, when using t.quarterly_cashflow, instead?

same issue

xwu64 avatar Dec 30 '21 19:12 xwu64

I got the reason for difference in the operating cash flow. It's because the website should all numbers in thousands. I'm sorry for this silly mistake.

However, the Capital Expenditure is still inconsistent.

xwu64 avatar Jan 14 '22 04:01 xwu64

@xwu64 The issue with the capital expenditure is resolved in my PR https://github.com/ranaroussi/yfinance/pull/776. You can use this if you like. Note that I have changed some of the function names to align with the statement names. You'll need to run the following two lines to get the right capital expenditure for TCEHY. stock_detail = yf.Ticker("TCEHY") stock_detail.cash_flow_statement Hope this helps resolve your issue.

git-shogg avatar Apr 29 '22 10:04 git-shogg

Correct financials are now available in pre-release version 0.2.0rc4.

ValueRaider avatar Dec 15 '22 16:12 ValueRaider