I'd like a way to get name of a stock/fund ticker using quantmod or other R packages, but so far I have not been able to find one. I tried using getSymbols etc. Let me know a way to do it. Thanks and sorry if this has been asked before, if so please point me the link. Regards. George -- View this message in context: http://r.789695.n4.nabble.com/How-to-get-name-of-a-ticker-using-Quantmod-R-tp4114044p4114044.html Sent from the Rmetrics mailing list archive at Nabble.com.
How to get name of a ticker using Quantmod/R
7 messages · George Kumar, Daniel Cegiełka, G See
Just to add more information to my original post. Suppose I have a ticker like CSCO or a mutual fund like AAUTX I would like to be able to get the full name of the companies using some R/quantmod package. For CSCO -- Cisco Systems, Inc. for AAUTX - Thrivent Large Cap Value A Thanks again. George -- View this message in context: http://r.789695.n4.nabble.com/How-to-get-name-of-a-ticker-using-Quantmod-R-tp4114044p4114124.html Sent from the Rmetrics mailing list archive at Nabble.com.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111128/56dac3f0/attachment.pl>
Thanks Daniel. But my problem is not to hold the full name, but rather a way to get the mapping for ticker to the full name. I have some webform where people would enter tickers, and I'd like to go fetch them the full name for the entity the ticker represents, be it a company or a fund or something else. Best Regards. George. -- View this message in context: http://r.789695.n4.nabble.com/How-to-get-name-of-a-ticker-using-Quantmod-R-tp4114044p4114295.html Sent from the Rmetrics mailing list archive at Nabble.com.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111128/40ba4a4d/attachment.pl>
I tried using the following scipt
----------------------------------------
Args <- commandArgs() # retrieve cmdline args
ticker <- as.character(Args[5])
url =
paste("http://download.finance.yahoo.com/d/quotes.csv?s=",ticker,"&f=n",sep="")
x<- read.table(url)
compname=x[1,]
compname=as.character(compname)
cat("Comp name is ",compname, "\n")
----------------------------------------
cat get_name_from_yahoo.R | R --vanilla --slave --args FIIAX
Output: FIDELITY ADVISOR
So even this does not give the full name that one sees in yahoo finance web
page - Fidelity Advisor Mid Cap II A
Thanks a lot for your replies.
George
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-name-of-a-ticker-using-Quantmod-R-tp4114044p4114517.html
Sent from the Rmetrics mailing list archive at Nabble.com.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111128/646680b4/attachment.pl>