the R package, Quantmod seems to have trouble accessing companies from Google when using the stockSymbols() function.
Here's a list of the companies I'm after from the NYSE, it's just the first 30:
NYSE
[1] "A" "AA" "AAC" "AAN" "AAP" "AAT" "AAV" "AB" "ABB"
[10] "ABBV" "ABC" "ABEV" "ABG" "ABM" "ABR" "ABR-PA" "ABR-PB" "ABR-PC"
Everything works well until it gets to ABR-PA and then returns an error message.
One of the ways I thought I could get around this was by running a Gsub over it to substitute some of the language, and that helped a bit but I'm still missing ~1% of companies from my ~3500 list.
here's the gsub:
NYSE <- gsub("-PK","-K",gsub("-PJ","-J",gsub("-PI","-I",gsub("-PH","-H",gsub("-PG","-G",gsub("-PF","-F",gsub("-PE","-E",gsub("-PD","-D",gsub("-PC","-C",gsub("-PB","-B",gsub("-PA","-A",NYSE)))))))))))
If anyone has tackled this before I'd be keen to hear some thoughts.