Closed giraffeingreen closed 7 months ago
Solved! Total Debt was 0 for Apple which is why you see the NaNs. Please update to v1.8.5.
NVDA still exhibit a NaN value for 2008? Is this the anticipated behavior?
Ah I see, probably because interest expense is NaN in that case. I'll adjust this later.
Is that because we use WACC instead of the cost of equity, I can implement a flag to swap between using WACC or cost of equity.
Feel free to do so! Makes sense to have both.
I also talked to one of my finance teachers, and we figured it'd be better to go with the estimatedNetIncomeAvg from https://site.financialmodelingprep.com/developer/docs/analyst-estimates-api instead of using earnings from current period.
That's indeed also a good option, note that this is obtainable directly from the Finance Toolkit as well: https://www.jeroenbouma.com/projects/financetoolkit/docs#get_analyst_estimates (but I think you are aware of that đŸ˜‰ )
For the following code snippet:
Does the FMP API miss something?