quandl / quandl-r

This is Quandl's R Package
https://cran.r-project.org/web/packages/Quandl/
Other
139 stars 55 forks source link

Stocks with special characters are not fetching data. #59

Closed Pruthvi79chow closed 6 years ago

Pruthvi79chow commented 6 years ago

In few stock names of NSE we have a special character(&) Ampersand. While pulling such information code is throwing following error.

quandldata = Quandl("NSE/M&M", collapse="daily", limit=1) Error in format.code(code) : Codes are comprised of capital letters, numbers and underscores only.

Is there any workaround to pull information from such stocks?

mbasset commented 6 years ago

Hi @Pruthvi79chow,

For compatibility reasons we don't support the & character in our API calls. However it looks like the stock you are looking for might be:

https://www.quandl.com/data/NSE/MM-Mahindra-Mahindra-Limited

For stocks like this that include special characters you can use our system to search through the metadata of companies via the search interface for that data product. (ex: https://www.quandl.com/data/NSE-National-Stock-Exchange-of-India).

Additionally you can confirm whether a code exists with the codes list found here https://www.quandl.com/data/NSE-National-Stock-Exchange-of-India/usage/export