pandas-datareader icon indicating copy to clipboard operation
pandas-datareader copied to clipboard

Quandl datareader cannot get ticker symbols with underscores

Open orensol opened this issue 5 years ago • 1 comments

When trying to retrieve Quandl data, using their specified symbol codes with underscores (such as BRK_B), there is an AssertionError thrown:

import pandas_datareader.data as web
price_data = web.DataReader(name='BRK_B', data_source='quandl', start='2018-01-01', end='2018-12-31')

Error returned:

.../quandl.py", line 77, in url assert mm, "Symbol '%s' must conform to Quandl convention 'DB/SYM'" % symbol AssertionError: Symbol 'BRK_B' must conform to Quandl convention 'DB/SYM'

orensol avatar Nov 27 '19 10:11 orensol

Hi,

I recon the problem is that you need the full symbol name. In you case, I think it should be 'CBARH/BRK_B'.

An-naili avatar Nov 30 '19 06:11 An-naili