【问题标题】:Dowloading data from quandl.com and want to know how I include my API key with my request?从 quandl.com 下载数据并想知道如何在请求中包含我的 API 密钥?
【发布时间】:2016-10-23 21:07:39
【问题描述】:

我正在使用 python 从 quandl.com 下载数据,今天我已经达到了 50 次下载的限制。拥有帐户的用户可以超过这个我已经设置了帐户的限制。错误消息说我需要将我的 api 密钥与请求一起放入,但据我所知,它并没有说明如何?

这是错误信息

quandl.errors.quandl_error.LimitExceededError: (Status 429) (Quandl Error QELx01) You have exceeded the anonymous user limit of 50 calls per day. To make more calls today, please register for a free Quandl account and then include your API key with your requests.

这是我使用的代码,除了请求限制之外,它可以工作

import quandl
import pandas as pd
from datetime import datetime
import pandas.io.data as web

symbols = ['BOE/XUDLTWD','BOE/XUDLCDS','tvix'] 



pnls = {}
for i in symbols:

    a = '/' in i

    if a == True:
        data = quandl.get(i ) 
        t = i.split('/')
        df1= pnls
        df1[str(t)] = data
        print(a)

【问题讨论】:

    标签: python api-key quandl


    【解决方案1】:

    这就是正确使用您的 api 密钥的方法。

    data = Quandl.get('what', authtoken='your_api_key')

    【讨论】:

      【解决方案2】:

      对于 API 密钥,您必须先登录 quandl,然后登录后,您将获得您的 API 密钥。 然后data = Quandl.get('what', authtoken='your_api_key')如上回答

      【讨论】:

        猜你喜欢
        • 2012-02-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-05-29
        • 1970-01-01
        • 2020-09-06
        相关资源
        最近更新 更多