如何从消息请求的序列号中获取消息请求?

发布于 2024-08-19 06:09:12 字数 366 浏览 2 评论 0原文

给定一个序列号,我需要找到相应的请求消息字符串。 我找不到一种方法可以使用 QuickFix lib 轻松做到这一点。

简而言之,我想到使用 FileStore“主体”文件来帮助我从序列号中检索消息请求字符串,因为 FileStore 类公开了一个方便的方法:
get(int begin, int end, std::vector result)

但我面临一个问题:由于这些文件是由另一个 FileStore 实例(从 Initiator 实例)访问的,因此这些文件无法从任何其他实例访问我的应用程序在 Windows 操作系统下的一部分:因为它禁止这些文件的第二个所有者。

我是否需要重写自己的机制来从序列号中获取请求消息字符串?

Given a sequence number, I need to find the corresponding request message string.
I can't find a way to it easily do that with quickFix lib.

To be short, I've had the idea to use the FileStore "body" file to help me retrieve the message request string from a sequence number,as the FileStore class exposes a convenient method:
get(int begin, int end, std::vector result)

But I am facing an issue: as those files are accessed by another FileStore instance (from the Initiator instance) those files are inaccessible from any other part of my application under Windows OS: as it forbids a second owner on the those files.

Do I need to rewrite my own mechanism to get request message string form their sequence number?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人哭 2024-08-26 06:09:12

我不确定您为什么要尝试根据序列号获取“消息字符串”。

这是在交易期间吗?您可以修改您的应用程序代码吗?您的应用程序从服务器/客户端获取消息,因此您可以将消息转储为字符串(在 C++ 中,它们具有与 ToString() 或类似方法有关的方法)。

您可以将字符串保存在字典中,并将序列号作为 id 等。该库还可以让您查看传出的消息。

如果是在遍历消息之后,您可以设置引擎创建数据文件,然后只处理数据文件,它包含所有接收和发送的消息。

抱歉,我只是无法弄清楚您到底想使用什么。

I'm not sure why are you trying to get the 'message string' based on sequence number.

Is this during trading? Can you modify your application code? Your application gets the messages from the server/client so you can just dump the message as string (in c++ they have methods something to do with ToString() or similar).

You could keep the string in a dictionary with the sequence number as id and so on. The library gets you to peek at the outgoing messages as well.

If it is after traiding the messages you can set the engine to create data files and then just process the data file, it has all the messages received and sent.

Sorry, I just can't figure out what exactly you are trying to use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文