无法从 IEX Cloud API 获取高级统计信息

Cannot get an advanced stats from IEX Cloud API

无法从 IEX Cloud 获取高级统计信息。你能帮我解决这个问题吗?澄清一下,它适用于统计数据、报价等。

import requests

symbol = 'AAPL'
IEX_CLOUD_API_TOKEN = 'sk_80e742117fc345ea92728199633d8f33'
base_url = 'https://cloud.iexapis.com/stable'

url_adv_stats = f'{base_url}/stock/{symbol}/advanced-stats?token={IEX_CLOUD_API_TOKEN}'

response_adv_stats = requests.get(url_adv_stats)
response_adv_stats.json()

错误:

Error file:JSONDecodeError: Expecting value: line 1 column 1 (char 0)

没有可解码的内容,因为您 运行 超出了配额。请检查 r.status_coder.text,如下所示。状态代码应为 2XX。可以找到完整的状态代码列表 here

import requests

symbol = 'AAPL'
IEX_CLOUD_API_TOKEN = 'sk_80e742117fc345ea92728199633d8f33'

base_url = 'https://cloud.iexapis.com/stable'
url_adv_stats = f'{base_url}/stock/{symbol}/advanced-stats?token={IEX_CLOUD_API_TOKEN}'
r = requests.get(url_adv_stats)

print(r.text)
print(r.status_code)

json = r.json()
print(json)

输出:

The requested data is not available to free tier accounts. Please upgrade for access to this data.
402
...