Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Is there a way to pull price data in R using an equities ISIN or SEDOL using tq_get? (international equities in particular)

$
0
0

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!!!


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>