简体   繁体   English

Quickfix或Quickfix / n,通过哪种消息类型可以识别自定义U1,U2,…,Un消息?

[英]Quickfix or Quickfix/n, through which message type are custom U1, U2,…,Un messages identified?

I cannot find anywhere how to manage custom U-type messages. 我在任何地方都找不到如何管理自定义U型消息。 I use MessageCracker and need to understand the corresponding OnMessage method signature. 我使用MessageCracker,需要了解相应的OnMessage方法签名。 For example my broker sends custom U1,U5, U2 messages, how can I capture those incoming messages inside a OnMessage method? 例如,我的经纪人发送自定义的U1,U5,U2消息,如何在OnMessage方法中捕获这些传入消息? I understand that Tag35 identifies those but if I cannot capture them through OnMessage then MessageCracker becomes kind of useless and I need to identify each message by Tag35 within FromApp or FromAdmin. 我知道Tag35可以识别这些消息,但是如果我无法通过OnMessage捕获它们,则MessageCracker变得毫无用处,我需要在FromApp或FromAdmin中通过Tag35识别每条消息。 Any suggestion how to handle those kind of custom U-types? 有什么建议如何处理这类自定义U类型?

Thanks 谢谢

Ah, custom messages. 嗯,自定义消息。 Fun stuff. 好玩的东西。

  1. You need to add your counterparty's customizations to the DataDictionary xml file. 您需要将交易对手的自定义项添加到DataDictionary xml文件中。 Choose the appropriate FIXnn.xml file for your FIX version. 选择适合您的FIX版本的FIXnn.xml文件。
  2. Then, because you are adding custom messages, you'll want to regenerate the QF/n source and rebuild the library so you can get classes for your new messages. 然后,由于要添加自定义消息,因此将需要重新生成QF / n源并重建库,以便可以获取新消息的类。
    • Instructions for rebuilding are here: https://github.com/connamara/quickfixn 重建说明在这里: https : //github.com/connamara/quickfixn
    • You'll need to install Ruby. 您需要安装Ruby。 This annoys some people, but we haven't found any more-windows-oriented code-generator that we don't hate. 这使某些人感到恼火,但是我们没有找到更多我们不讨厌的面向Windows的代码生成器。 Sorry in advance. 不好意思
    • (If you were just adding fields to existing messages, you could probably get away with not rebuilding. But you're adding messages, so you pretty much have to regenerate/rebuild.) (如果只是在现有消息中添加字段,则可能无需重建就可以摆脱。但是,由于要添加消息,因此几乎必须重新生成/重建。)

To Windows developers, it may seem annoying that rebuilding the library is required, but it really is the norm for all the QF engines. 对于Windows开发人员来说,似乎需要重新构建该库似乎很烦人,但这实际上是所有QF引擎的规范。 FIX is just too fudgey a protocol for a single build to satisfy everyone, because it seems that every counterparty likes to screw with the message definitions. FIX对于一个单一的构建来说太荒谬了,无法满足所有人的要求,因为似乎每个交易对手都喜欢使用消息定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM