Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history_orders接口不能使用了,返回空。其他接口正常 #40

Closed
wsmswsms opened this issue Jun 25, 2024 · 6 comments
Closed

Comments

@wsmswsms
Copy link

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)

你的环境信息

  • 操作系统: [Windows]
  • 开发语言: Python
  • SDK 版本号:1.0.27
@huacnlee
Copy link
Contributor

这个是历史订单,当日新创建的订单不会在里面。

你看一下是不是没有历史订单

@wsmswsms
Copy link
Author

我查的就是历史订单。我每天都有成交的
另外这个接口是从这周一开始不行的,之前一直在用,都能正确返回历史订单的

@wsmswsms
Copy link
Author

建议看一下是不是后台数据出了问题

@huacnlee
Copy link
Contributor

稍等,我找我们这边服务端工程师查一下看看是什么问题

@LuGHuaaa
Copy link

查询展示的问题, 已经修复

@wsmswsms
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants