开发者

How to get a message request from its sequence number?

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开发者_Go百科 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜