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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.