Convert String FIX Message

Convert String FIX Message

If you are using FIX protocol to send and receive messages where you need to build FIX message from String then you could use below sample program. I have used API from QuickFIX/J which is open source and very famous in the insustry.

Note: You could directly downlaed QuickFix jar from its web site here. To make this example work right away I have used quickfixj-all 1.6.0 version where you could convert your string message to any FIX version and for this example we are using FIX 4.2.

  • Project structure:

Convert String FIX Message

As you see above this is complete class where ENUM has been used for constant where you could add remove message type easily.

  • FixMessageTypeFields.java:

  • ConvertStringToFIXMessage.java:

  • Output:

Convert String FIX Message

Leave a Reply

Your email address will not be published. Required fields are marked *