当我尝试获取加密货币的日内数据时,它返回invalid api call
当我将其更改为“每日”时,请求工作正常。外汇和时间序列也运行良好,只有加密货币和日内的汇率
这是我的密码:
from alpha_vantage.cryptocurrencies import CryptoCurrencies
ts = CryptoCurrencies(key="my_key", output_format="pandas")
data= ts.get_digital_currency_exchange_rate(symbol='BTC',market='USD')
下面是我得到的错误:
ValueError: Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for CURRENCY_EXCHANGE_RATE.
有两个问题:
USD
中BTC
的价格,必须使用ForeignExchange
。 以下是调整后的正常工作代码:相关问题 更多 >
编程相关推荐