Handling FIX Reject: retrieve FIX message by sequence number in RefSeqNum using QuickFix/J

前端 未结 1 1126
不思量自难忘°
不思量自难忘° 2021-01-15 09:01

I am trying to handle a FIX Reject (MsgType 35=3), but I am unclear on how to retrieve the message that is referred to by the FIX Reject message.

The F

相关标签:
1条回答
  • 2021-01-15 09:44

    Do you want to programmatically handle this failure? Generally the lower level rejects should never happen in the production environment. I have always dealt with them while testing and manual inspection of messages to identify the actual message and the tag having the problem.

    In any case you can programmatically get the message by:

    1. First looking up the session using Session Session.lookupSession(SessionID sessionId)

    2. Get the MessageStore associated with the Session using MessageStore Session.getStore()

    3. Obtain the actual message using MemoryStore.get(int startSequence, int endSequence, Collection<String> messsages)

    You can find API documentation for QuickFIX/J here, or visit the documentation folder.

    Note that in step 3 you will have to pass the same sequence number as the start and the end sequence number.

    0 讨论(0)
提交回复
热议问题