我有一个C# QuickFix应用程序,它需要设置(Tag 128) DeliverToCompID,但是类QuickFix不包含这个字段,这意味着我不能从头加载DeliverToCompID .我知道在消息发送之前应该设置DeliverToCompID。
以下3行是不正确的,因为DeliverToCompID应该设置在标头中。
if (message.IsSetField(Tags.DeliverToCompID))
message.SetField(new DeliverToCompID("COMP_C"));
Session.Send(message);我需要重新编译库吗?或者有人知道如何设置DeliverToCompID?
QuickFix版本: 1.7.0.0
错误消息:
Initiated logon request
Message 1 Rejected: Required tag missing (Field=128)
Session FIX.4.2:COMP_A->COMP_B disconnecting: QuickFix.QuickFIXException:修复xml的一部分:
<header>
<field name="DeliverToCompID" required="Y"/>配置文件的一部分:
[DEFAULT]
UseDataDictionary=Y
[SESSION]
BeginString=FIX.4.2
SenderCompID=COMP_A
TargetCompID=COMP_B
DeliverToCompID=COMP_C发布于 2017-02-20 09:10:52
会话头标签128正在讨论会话配置。
<header>
<field name="DeliverToCompID" required="N"/>由于我只有一个会话登录,但有多个执行代理,所以我需要为每个消息设置标签128,如下所示:
message.Header.SetField(new DeliverToCompID("COMP_C"));https://stackoverflow.com/questions/42313414
复制相似问题