如何从消息请求的序列号中获取消息请求?
给定一个序列号,我需要找到相应的请求消息字符串。 我找不到一种方法可以使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定您为什么要尝试根据序列号获取“消息字符串”。
这是在交易期间吗?您可以修改您的应用程序代码吗?您的应用程序从服务器/客户端获取消息,因此您可以将消息转储为字符串(在 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.