How to get a message request from its serial number?

Given the sequence number, I need to find the corresponding line of the request message. I cannot find a way to do this easily with quickFix lib.

In short, I had the idea of ​​using the bodyStore FileStore file to help me get the message request string from the serial number, since the FileStore class provides a convenient method:
 get(int begin, int end, std::vector result)

But I ran into a problem: since these files are accessed by another FileStore instance (from the initiator instance), these files are not available from any other part of my Windows application: since this prohibits the second owner in these files.

Do I need to rewrite my own mechanism to get a query message string with a serial number?

+3
source share
1 answer

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

Is this during the trade? Can you change the application code? Your application receives messages from the server / client, so you can just send the message as a string (in C ++, they have methods related to ToString()or similar).

You can save the string in a dictionary with a serial number as id and so on. The library makes you look at outgoing messages.

If after passing messages you can configure the engine to create data files, and then simply process the data file, it will receive all received and sent messages.

, , .

0

Source: https://habr.com/ru/post/1729900/


All Articles