You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
py sdk: 使用 QuoteContext.history_candlesticks_by_date 函数设置周期为 Period.Min_x 报错: longport.OpenApiException: OpenApiException: (code=301600, trace_id=) out of minute kline begin date
#48
Closed
ddingning opened this issue
Jul 21, 2024
· 4 comments
history_candlesticks_by_date 函数设置周期为 Period.Min_1/5/30/60 报错: longport.OpenApiException: OpenApiException: (code=301600, trace_id=) out of minute kline begin date. Period.Day/Week/Year..等正常
请问是我用错了了嘛还是不支持这种查询... 希望大佬支持下..
代码例子
candlesticks = ctx.history_candlesticks_by_date("AAPL.US", Period.Min_5, AdjustType.NoAdjust,
datetime.date(2022, 5, 5), datetime.date(2022, 6, 23))
for candlestick in candlesticks:
print(candlestick)
错误信息或结果截图
candlesticks = qtx.history_candlesticks_by_date("AAPL.US", Period.Min_5, AdjustType.NoAdjust,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
longport.OpenApiException: OpenApiException: (code=301600, trace_id=) out of minute kline begin date
你的环境信息
操作系统: Windows 10
开发语言: Python 3.12.2
SDK 版本号: longport 1.0.27
The text was updated successfully, but these errors were encountered:
问题描述
history_candlesticks_by_date 函数设置周期为
Period.Min_1/5/30/60
报错: longport.OpenApiException: OpenApiException: (code=301600, trace_id=) out of minute kline begin date. Period.Day/Week/Year..等正常请问是我用错了了嘛还是不支持这种查询... 希望大佬支持下..
代码例子
错误信息或结果截图
candlesticks = qtx.history_candlesticks_by_date("AAPL.US", Period.Min_5, AdjustType.NoAdjust,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
longport.OpenApiException: OpenApiException: (code=301600, trace_id=) out of minute kline begin date
你的环境信息
The text was updated successfully, but these errors were encountered: