gpt4 book ai didi

quickfix - 位置报告错误 (FIX 4.4) : Group 702's first entry does not start with delimiter 704

转载 作者:行者123 更新时间:2023-12-04 03:17:59 24 4
gpt4 key购买 nike

我是 FIX 协议(protocol)的新手,我正在使用 QuickFIX 来解析我的 FIX 消息。每当我收到位置报告消息 (AP) 时,它都会被 FIX 引擎拒绝并出现以下错误:

Group 702's first entry does not start with delimiter 704

这里的 702 是一个组标签。我做了一些研究,发现重复的组消息使用它的第一个字段作为分隔符。在我的例子中,组 702 应该有标签 704 (LongQty) 或 705 (ShortQty)。只有一个标签会出现。

我的交易对手没有发送 703 标签。在某些情况下,当 FIX 引擎发现没有 704 标记时,它会拒绝该消息。请让我知道您对解决此问题的建议。

最佳答案

FIX 希望每个组都以一个一致的标签开始。

您可以更改 XML DataDictionary 中的该标记,例如,通过重新排列(或删除/添加)该组中的字段来使用 704 而不是 703。

In my case group 702 is supposed to have either tag 704(LongQty) or 705(ShortQty).

不,那行不通。它总是以 704 开头还是总是以 705 开头?它不能是其中之一。

如果你的交易对手真的说它是其中之一,那么他们在 FIX 上做错了,我们应该公开羞辱他们。 (说真的,他们不能只输入 704=0 而不是省略它吗?)要处理这种愚蠢行为,您可能必须破解 QF 引擎。

我建议您与您的交易对手仔细核实,确认他们确实这样做是错误的。我希望(为了你的缘故)你错了。

编辑:

这来自 FIX 44 规范,第 1 卷,第 19 页:

If the repeating group is used, the first field of the repeating group is required. This allows implementations of the protocol to use the first field as a "delimiter" indicating a new repeating group entry. The first field listed after the NoXXX, then becomes conditionally required if the NoXXX field is greater than zero.

关于quickfix - 位置报告错误 (FIX 4.4) : Group 702's first entry does not start with delimiter 704,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39881806/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com