如何用python从quandl中提取期货数据

如何用python从quandl中提取期货数据,python,python-3.x,pandas,finance,quandl,Python,Python 3.x,Pandas,Finance,Quandl,我已经安装了pip quandl,而且我已经准备好了API密钥 import quandl import pandas as pd quandl.ApiConfig.api_key = "Mykey" df=quandl.get('LME/PR_CU') 但是当我试图从quandl中提取数据时,代码返回一个错误 Traceback (most recent call last): File "C:/Users/austi/Desktop/stock&

我已经安装了pip quandl,而且我已经准备好了API密钥

import quandl
import pandas as pd
quandl.ApiConfig.api_key = "Mykey"

df=quandl.get('LME/PR_CU')
但是当我试图从quandl中提取数据时,代码返回一个错误

Traceback (most recent call last):
  File "C:/Users/austi/Desktop/stock&trading/test Quandl code.py", line 5, in <module>
    df=quandl.get('LME/PR_CU')
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\get.py", line 48, in get
    data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\model\dataset.py", line 51, in data
    return Data.all(**updated_options)
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\operations\list.py", line 15, in all
    r = Connection.request('get', path, **options)
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\connection.py", line 38, in request
    return cls.execute_request(http_verb, abs_url, **options)
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\connection.py", line 56, in execute_request
    cls.handle_api_error(response)
  File "C:\Users\austi\Downloads\Python 3.6.3\Lib\site-packages\quandl\connection.py", line 114, in handle_api_error
    raise klass(message, resp.status_code, resp.text, resp.headers, code)
quandl.errors.quandl_error.NotFoundError: (Status 404) (Quandl Error QECx02) You have submitted an incorrect Quandl code. Please check your Quandl codes and try again.
回溯(最近一次呼叫最后一次):
文件“C:/Users/austi/Desktop/stock&trading/test Quandl code.py”,第5行,在
df=数量获取('LME/PR_CU')
文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\get.py”,get中第48行
数据=数据集(数据集参数['code'])。数据(参数=kwargs,句柄列未找到=True)
文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\model\dataset.py”,第51行,在数据中
返回数据。全部(**更新的_选项)
文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\operations\list.py”,第15行,共
r=Connection.request('get',path,**选项)
请求中第38行的文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\connection.py”
返回cls.execute\u请求(http\u动词、abs\u url、**选项)
文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\connection.py”,第56行,在执行请求中
cls.handle\u api\u错误(响应)
文件“C:\Users\austi\Downloads\Python 3.6.3\Lib\site packages\quandl\connection.py”,第114行,在handle\u api\u error中
升起klass(消息、响应状态代码、响应文本、响应标题、代码)
quandl.errors.quandl_error.NotFoundError:(状态404)(quandl error QECx02)您提交了错误的quandl代码。请检查您的Quandl代码,然后重试。
我只是从网站上复制了一些简单的代码,我不知道是什么导致了这个错误。我在get函数中输入的代码来自