如何通过IB API获取打开订单或填充订单的订单?

发布于 2025-01-30 16:30:52 字数 60 浏览 2 评论 0原文

我使用IB API和C#生成了贸易系统。

我想知道是否有可以获取打开/填充订单的订单的功能?

I generated my trade system with IB API and C#.

I'm wondering whether is there a function to get the open/filled orders' orderId?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还不是爱你 2025-02-06 16:30:52

ibapi.eclient.reqopenorders方法允许获取客户端应用程序提交的所有活动订单

 client.reqOpenOrders();

,或者

  client.reqAllOpenOrders();

在ewrapper中收到Ewrapper和permid的结果,

void openOrder(int orderId, Contract contract, Order order, OrderState orderState);

将在执行结束时 您将点击void openorderend();方法>方法>方法>方法>方法在您的包装纸

文档中:

The IBApi.EClient.reqOpenOrders method allows to obtain all active orders submitted by the client application

 client.reqOpenOrders();

or

  client.reqAllOpenOrders();

results will be received in EWrapper with orderId and permId

void openOrder(int orderId, Contract contract, Order order, OrderState orderState);

in the end of execution you will hit void openOrderEnd(); method in your wrapper

documentation:
https://interactivebrokers.github.io/tws-api/open_orders.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文