I want to get all data symbols belong to TSX (Toronto Stock Exchange) I have all symbols, but sometimes some symbols do not exist in yahoo finance. Is there any special package for my goal?
I use this code in R but I have a problem:
x = pdfetch_YAHOO(tsxsymbol[i,4], fields = c("close"), from = as.Date("2017-09-01"), to = Sys.Date(), interval = "1d")
problem: if even one symbol does not exist in yahoo finance, This code does not work appropriately.