QuickFix 引擎对执行报告消息的奇怪响应

发布于 2024-07-15 13:12:41 字数 167 浏览 3 评论 0原文

我目前在使用开源 QuickFix 引擎时遇到了一个奇怪的问题。 我们的经纪商正在发送一些 MsgType = 8(执行报告)的测试交易,我们的 QuickFix 引擎立即回复异常,并显示“不支持的消息类型”。 经纪人消息中的所有标签似乎都是合法的。

为什么会发生这种情况以及如何解决该问题?

I am currently experiencing a strange problem with the open-source QuickFix engine. Our broker is sending some test trades with MsgType = 8 (Execution Report), and our QuickFix engine immediately replies with an exception saying "Unsupported Message Type". All of the tags in the broker's message appear to be legitimate.

Why is this happening and how can I resolve the issue?

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

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

发布评论

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

评论(1

居里长安 2024-07-22 13:12:41

我无法读懂思想,但听起来您可能已将应用程序实现为 MessageCracker< /a> 但忘记重写相应的 onMessage 函数。 请注意,消息类型的每个 FIX 版本都有一个单独的 onMessage 重载,例如:

onMessage (const FIX40::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX41::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX42::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX43::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX44::ExecutionReport&, const FIX::SessionID&) 

所有这些方法的默认实现都会抛出 UnsupportedMessageType 异常,听起来像你所看到的。

I can't read minds, but it sounds like you may have implemented your application as a MessageCracker but forgotten to override the appropriate onMessage function. Note there is a separate onMessage overload for each FIX version of a message type, e.g. there are:

onMessage (const FIX40::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX41::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX42::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX43::ExecutionReport&, const FIX::SessionID&) 
onMessage (const FIX44::ExecutionReport&, const FIX::SessionID&) 

The default implementation of all of these methods throws an UnsupportedMessageType exception, which sounds like what you are seeing.

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