I'm trying to retrieve financials for firms listed at Tel Aviv Stock Exchange, e.g.: LUMI (Bank Leumi), by quantmod using source=yahoo.
Here is the error I get:
getFin("LUMI",src="yahoo") Error in thead[x]:thead[x + 1] : NA/NaN argument
I also tried:
getFin("LUMI.TA",src="yahoo") Error in thead[x]:thead[x + 1] : NA/NaN argument
It seems that getFin does not work for foreign firms, any lead?
First query: Check if the symbol you are searching in Google Finance has financials (as a link/tab) under the Company tab on the left.
getFin
/getFinancials
is essentially query searching for this through the API configuration.Also, note that yahoo is overridden by google even after assigning
src = "yahoo"
. Check?getFin
in the console to confirm. It says under the description in help: Download Income Statement, Balance Sheet, and Cash Flow Statements from Google Finance.If the company's financial statements are not recorded under the U.S. Securities and Exchange Commission, check here: SEC: Enter Company Symbol under Fast Search to see if the European company has filings under the SEC.
For example NVS - Novartis works, unlike LUMI or Nestlé (NSRGY).
Output from:
viewFinancials(NVS.f, type= 'IS', period = 'Q')
(Truncated output data for view purposes).You can get what you need off the BS, IS, or CF by doing the following: