How to get data from the Argentine market with quandl for Python

0

I show you my code with which I am trying to download the data the merval. I will use sample as under the AAPL data that is a success. but when I try the derl merval it gives me error. Could you help me with the correct code please?

import quandl 
aapl = quandl.get("WIKI/AAPL", start_date="2000-01-01", end_date="2018-01-01")
print (aapl)

             Open      High       Low    Close      Volume  Ex-Dividend  \
Date                                                                       
2000-01-03  104.87  112.5000  101.6900  111.940   4783900.0          0.0   
2000-01-04  108.25  110.6200  101.1900  102.500   4574800.0          0.0   
2000-01-05  103.75  110.5600  103.0000  104.000   6949300.0          0.0   
2000-01-06  106.12  107.0000   95.0000   95.000   6856900.0          0.0   
2000-01-07   96.50  101.0000   95.5000   99.500   4113700.0          0.0   
2000-01-10  102.00  102.2500   94.7500   97.750   4509500.0          0.0   
2000-01-11   95.94   99.3700   90.5000   92.750   3

Merval = quandl.get("WIKI/MERVAL", start_date="2000-01-01", end_date="2018-01-01")

NotFoundError                             Traceback (most recent call last)
<ipython-input-16-f89b41989853> in <module>()
----> 1 Merval = quandl.get("WIKI/MERVAL", start_date="2000-01-01", end_date="2018-01-01")

~\Anaconda3\lib\site-packages\quandl\get.py in get(dataset, **kwargs)
     46         if dataset_args['column_index'] is not None:
     47             kwargs.update({'column_index': dataset_args['column_index']})
---> 48         data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
     49     # Array
     50     elif isinstance(dataset, list):

~\Anaconda3\lib\site-packages\quandl\model\dataset.py in data(self, **options)
     45         updated_options = Util.merge_options('params', params, **options)
     46         try:
---> 47             return Data.all(**updated_options)
     48         except NotFoundError:
     49             if handle_not_found_error:

~\Anaconda3\lib\site-packages\quandl\operations\list.py in all(cls, **options)
     12             options['params'] = {}
     13         path = Util.constructed_path(cls.list_path(), options['params'])
---> 14         r = Connection.request('get', path, **options)
     15         response_data = r.json()
     16         Util.convert_to_dates(response_data)

~\Anaconda3\lib\site-packages\quandl\connection.py in request(cls, http_verb, url, **options)
     34         abs_url = '%s/%s' % (ApiConfig.api_base, url)
     35 
---> 36         return cls.execute_request(http_verb, abs_url, **options)
     37 
     38     @classmethod

~\Anaconda3\lib\site-packages\quandl\connection.py in execute_request(cls, http_verb, url, **options)
     42             response = func(url, **options)
     43             if response.status_code < 200 or response.status_code >= 300:
---> 44                 cls.handle_api_error(response)
     45             else:
     46                 return response

~\Anaconda3\lib\site-packages\quandl\connection.py in handle_api_error(cls, resp)
     83         klass = d_klass.get(code_letter, QuandlError)
     84 
---> 85         raise klass(message, resp.status_code, resp.text, resp.headers, code)

NotFoundError: (Status 404) (Quandl Error QECx02) You have submitted an incorrect Quandl code. Please check your Quandl codes and try again.
    
asked by Napoleon Ricaurte 31.05.2018 в 22:14
source

0 answers