python - 分钟和每小时数据不再适用于 Tiingo API 和网站
问题描述
我刚刚发现任何一个网站和 tiingo API 都不再提供基于分钟/小时的数据,
在此处检查并单击以重新采样到 1 分钟: https ://www.tiingo.com/002032/overview
或使用 python 代码测试:
from tiingo import TiingoClient
config = {}
# To reuse the same HTTP Session across API calls (and have better performance), include a session key.
config['session'] = True
# If you don't have your API key as an environment variable,
# pass it in via a configuration dictionary.
config['api_key'] = "xxxxxxxx Your Key xxxx"
# Initialize
client = TiingoClient(config)
dfTinngo = client.get_dataframe('002032', startDate='2021-11-8', frequency='1Min')
可以更改频率并用 30 分钟、1 小时重新测试,但它们都不起作用我得到如下错误代码:
KeyError: "None of ['date'] are in the columns"
解决方案
推荐阅读
- javascript - Jquery,如何使用 jquery 添加隐藏元素
- javascript - 翻转卡片 HTML:单击时不会翻转或保持翻转
- java-8 - 使用项目反应器处理多个外部服务
- r - 在 R 中使用 For 循环生成向量
- reactjs - react-three-fiber 3D 对象(.obj)模型不投射任何阴影
- python - 明智地在列表组件列表中添加或减去元素
- python - pip install dubins 给出了多个错误
- angular - 满足条件时,角度检查属性无法正常工作
- flask - 如何通过 jinja 将变量传递给 litelement?
- python - 正则表达式删除(whatever_inside)IFF,如果括号内没有空格,则只有 IFF