Child pages
  • Using Message Metadata

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The basic idea is simple, but there are a few complications to consider. Let's say we have a parsed FIX message and want to format it in way that that's easier to read than tag/value pairs. We might start by simply iterating over the fields and printing their values.

...

All the fields are there now, but there are still a few problems. The group count tag is shown twice because it's also a normal top level field. We'll add a few lines of code to avoid printing the group count field as a normal field. We To do this we can ask the data dictionary for the type of a field. In this case, we are checking whether the field is a NumInGroup type.

...

I hope this gives you some ideas about how to use the metadata API in QuickFIX/J. Please leave a comment if you have questions or suggestions.

Steve Bate

Attachments