How to parse a NewOrderSingle with FIXParser

author
By FIXParser

2024-12-17

Using FIXParser

Install fixparser via NPM by running the following command in your terminal:

Import the library and parse the message. This example uses a vertical bar ('|') as the delimiter, but typically, the special \x01 character (SOH) is used for separation. The message follows the NewOrderSingle format, a widely used message type that allows institutions to electronically submit securities and forex orders to brokers for execution.

This prints out a brief description of the FIX message using getBriefDescription(): "BUY 100 CVS MKT DAY". FIXParser will include the FIX specification description / enumeration / category and other data for every field in the message.

You can further identify the type of FIX message by using the functions on the Message class, such asgetField() and getEnum().

These examples is available in the free version of FIXParser.