Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to validate a FIX message against Fix dictionary in QuickFix/J?

If validation is on in QuickFix/J, the received FIX message is validated against the FIX dictionary configured for Fix engine.

ValidateIncomingMessage| Allow to bypass the message validation (against the dictionary). Default is "Y".

Is there any utility class or method present in QuickFix/J which provides me this functionality to validate a sample Fix message against a Fix dictionary?

like image 384
Amit Bhati Avatar asked Oct 27 '25 14:10

Amit Bhati


1 Answers

You want to use DataDictionary.validate()

            DataDictionary dataDictionary = new DataDictionary( pathToDictionary );
            Message quickfixMessage = new Message( message, dataDictionary );
            dataDictionary.validate( quickfixMessage );

where message is the fix message. QuickfixJ includes some dictionaries in the etc folder.

like image 58
Alex Colomb Avatar answered Oct 29 '25 17:10

Alex Colomb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!