简体   繁体   English

QuickFIX / n有条件必填字段缺失(494)

[英]QuickFIX/n Conditionally Required Field Missing (494)

I am new to QuickFIX/n, I sent a MarketDataRequest but got a BussinessMessageReject with Tag 58 " Conditionally Required Field Missing (494) " which is Designation. 我是QuickFIX / n的新手,我发送了MarketDataRequest,但获得了带有Tag 58“ 有条件的必填字段缺失(494) ”的BussinessMessageReject,这是名称。

Anyone know how to set 494? 有人知道如何设置494吗?

My TransportDataDictionary is FIXT1.1 and AppDataDictionary is FIX5.0 我的TransportDataDictionary是FIXT1.1,AppDataDictionary是FIX5.0

Here is my C# code: 这是我的C#代码:

 protected override QuickFix.FIX50.MarketDataRequest CreateMessage()
    {
        var message = new QuickFix.FIX50.MarketDataRequest();
        message.Set(new MDReqID("0"));
        message.Set(new SubscriptionRequestType('0'));
        message.Set(new MarketDepth(1));
        message.Set( new NoMDEntryTypes(1));
        message.Set(new NoRelatedSym(1));

        var noRelatedSymGroup = new QuickFix.FIX50.MarketDataRequest.NoRelatedSymGroup();
        noRelatedSymGroup.Set(new Symbol("123"));
        message.AddGroup(noRelatedSymGroup);

        var noMDEntryTypesGroup = new QuickFix.FIX50.MarketDataRequest.NoMDEntryTypesGroup();
        noMDEntryTypesGroup.Set(new MDEntryType('0'));            
        message.AddGroup(noMDEntryTypesGroup);            
        return message;
    }

The tag is called Designation by name (.NET class definition here ). 该标签称为“ Designation此处为 .NET类定义)。 However it's not part of the FIX specification for this message type. 但是,它不是此消息类型的FIX规范的一部分。

If it's really required by your couterparty, add it to the data dictionary (FIX50.xml) for the specific message type, and specify the altered data dictionary in configuration . 如果您的合作伙伴确实需要它,请将其添加到特定消息类型的数据字典(FIX50.xml)中,然后在configuration中指定更改的数据字典。 Look for the AppDataDictionary setting. 查找AppDataDictionary设置。

Then Set the field as you would any other field. 然后像设置其他任何字段一样设置该字段。

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

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