Search code examples
pythonpandasquandl

Forex data from Quandl with Pandas


I'm trying to get Currency data from Quandl with Pandas with this code:

data = Quandl.get('GBPUSD', collapse='weekly', authtoken='XXXXX')

But I'm getting

Quandl.Quandl.DatasetNotFound: Dataset not found. Check Quandl code: GBP for errors

Solution

  • You need to specify a source like this:

        data = Quandl.get('CURRFX/GPBUSD')
    

    There are several other sources. Check https://www.quandl.com/resources/api-for-currency-data for details.