I am attempting to pull price data for a bunch of international equities using tq_get
in the tidyquant
package but am having issues pulling the data based on the ticker, since the data I have only has ISIN and SEDOL as identification values. When I enter either into the search bar in yahoo finance, the correct equity shows up (and I assume that tq_get uses yahoo finance) but when I enter it in the code where the ticker would go I get an error message.
I have tried entering both the ISIN and SEDOL values into the code and each returns an error.
Alibaba (BABA) - listed in the US so that is not the issue...
SEDOL:
test1 <- tq_get("BP41ZD1", get = "stock.prices",from = "2016-10-24",to = "2019-10-25")
ISIN:
test2 <- tq_get("US01609W1027",get = "stock.prices",from = "2016-10-24",to = "2019-10-25")
Error Message:
x = 'BP41ZD1', get = 'stock.prices': Error: BP41ZD1 download failed after two attempts. Error message:
HTTP error 404.
x = 'US01609W1027', get = 'stock.prices': Error: US01609W1027 download failed after two attempts. Error message:
HTTP error 404.
I would expect this to work just as if "AAPL" or "MSFT" was in the ticker value, ideally.
Any help would be much appreciated!!!