joshuaulrich / quantmod

Quantitative Financial Modelling Framework
http://www.quantmod.com/
GNU General Public License v3.0
814 stars 224 forks source link

getQuote returns NAs on a symbol containing & (ampersand) in its name #324

Closed pankaj3009 closed 3 years ago

pankaj3009 commented 3 years ago

Description

While using getQuote() on a symbol that contains an & in its name, getQuote returns a data.frame of NAs

Minimal, reproducible example

getQuote(c("M&M.NS","J&KBANK.NS"))
joshuaulrich commented 3 years ago

Thanks for the report. I can replicate and have a fix.

pankaj3009 commented 3 years ago

Thank you. The fix works beautifully.