重复组QuickFix的NumInGroup计数不正确 [英] Incorrect NumInGroup count for repeating group QuickFix

查看:781
本文介绍了重复组QuickFix的NumInGroup计数不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法解析此市场数据增量刷新消息(修复4.3):

I am unable to parse this market data incremental refresh message(fix 4.3):

8=FIX.4.3|9=187|35=X|34=4|49=XDEMO|52=20130224-22:31:05.283|56=demo310262=A|268=2|279=2|269=0|278=0014vd32|55=EUR/USD|290=1|64=20130227|279=0|269=0|278=0014vdb2|270=1.31934|271=1000000|290=1|546=3|10=124

Quickfix / j给出了以下内容:

Quickfix/j gives me the following:


quickfix.FieldException:重复组的NumInGroup计数不正确,field = 268

quickfix.FieldException: Incorrect NumInGroup count for repeating group, field=268

我知道这是一个重复的组问题,但我不是非常确定如何更改我的规范以解析此消息。

I know that is a repeating group issue, but I not quite sure how to change my spec in order to parse this message.

推荐答案

Group: 268=2|
  Item 1: 279=2|269=0|278=0014vd32|55=EUR/USD|290=1|64=20130227|
  Item 2: 279=0|269=0|278=0014vdb2|270=1.31934|271=1000000|290=1|546=3|

默认情况下,字段64不是NoMDEntries(268)重复组的一部分。当解析器命中64时,它认为它已经超过重复组的末尾,并且组首先且只有项目在前290处结束。

Field 64 is not by default part of the NoMDEntries (268) repeating group. When the parser hits 64, it thinks it has reached past the end of the repeating group, and that the groups first and only item ended at the first 290.

数据字典看了几分钟后,xml文件很容易理解。假设您的发件人故意希望64在此组中,您只需要找到消息X的定义(MarketDataIncrementalRefresh)并在该组中的适当位置添加字段64(FutSettDate)。 (该组或其中的一部分可以在组件中定义,但我认为您将能够弄明白。)

The DataDictionary xml file is quite easy to understand after you've looked at it for a few minutes. Assuming that your sender intentionally wants 64 to be in this group, you simply need to find the definition for message X (MarketDataIncrementalRefresh) and add field 64 (FutSettDate) in its proper place in that group. (This group or part of it may be defined in a component, but I think you'll be able to figure it out.)

注意:字段的顺序很重要。确保在290(MDEntryPositionNo)之后以及在组合项目中可能出现的任何其他可选字段之前或之后添加它。

Note: The order of fields is important. Make sure you add it on a line after 290 (MDEntryPositionNo) and before or after any other optional fields as appropriate that might appear in a group item.

我猜64这不是您的交易对手唯一的DD修改。您需要与您的交易对手核实,以便您可以进行所有必要的DD更改。

I'm guessing that 64 is not the only DD modification your counterparty has made. You need to check with your counterparty so that you can make all DD alterations necessary.

这篇关于重复组QuickFix的NumInGroup计数不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆