Closed CormacH332 closed 2 years ago
Hi, no worries at all. The API endpoint for the names seems to be down, either temporarily or permanently. You can replace that function with search_stock, which has a shortname column.
yfinance::search_stock("AAPL", keep_results = "top")
I'm looking into the nested data.
The nested data example is failing because one of the companies that are being searched, got acquired since I made this example. Therefore yahoo finance cannot find its ticker, because it doesn't exist anymore. So for a request of 8 tickers, yfinance returns 7 results, and this causes problems with mutate, which is expecting either 8 results or a single result that it will replicate 8 times. I have pushed the updated notebook at the link below, but basically you just need to remove the Alexion from the companies vector. https://github.com/Ljupch0/yfinance_showcase/blob/master/yfinance%20showcase.RMd
Hi Ljupch0,
I am new to this so if this is a simple fix apologies for wasting your time. I have been following along and I could successfully run all code bar get_company_names which returns "Error in open.connection(con, "rb") : HTTP error 404." although the tickers are spelt correctly.
I left this as it wasn't essential to continue with the tutorial but when I got to Nested Data I got the following error when mutating
Thanks