Closed wsmswsms closed 2 months ago
history_orders接口不能使用了,返回空。其他接口正常
为了减少来回反复沟通,请尽量描述更多问题的细节。
代码例子
from datetime import datetime from longport.openapi import TradeContext, Config, OrderStatus, OrderSide, Market config = Config.from_env() ctx = TradeContext(config) resp = ctx.history_orders( status=[OrderStatus.Filled, OrderStatus.New], side=OrderSide.Buy, market=Market.US, start_at=datetime(2024, 6, 9), end_at=datetime(2024, 6, 24), )
如果可以,请给出一些执行的结果截图,最好给完整截图,避免关键信息遗漏(请注意保护你的 Access Token)
你的环境信息
这个是历史订单,当日新创建的订单不会在里面。
你看一下是不是没有历史订单
我查的就是历史订单。我每天都有成交的 另外这个接口是从这周一开始不行的,之前一直在用,都能正确返回历史订单的
建议看一下是不是后台数据出了问题
稍等,我找我们这边服务端工程师查一下看看是什么问题
查询展示的问题, 已经修复
thanks
history_orders接口不能使用了,返回空。其他接口正常
为了减少来回反复沟通,请尽量描述更多问题的细节。
代码例子
如果可以,请给出一些执行的结果截图,最好给完整截图,避免关键信息遗漏(请注意保护你的 Access Token)
你的环境信息