Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:06:53+00:00 2026-06-14T07:06:53+00:00

VERY basic questions from a FIX newbie Looking at the documentation at http://www.quickfixengine.org and

  • 0

VERY basic questions from a FIX newbie

Looking at the documentation at http://www.quickfixengine.org and reading posts here on stackoverflow I see lots of talk about message ‘cracking’. I think I sort of get the idea, but feel like I’m still not totally clear.

Can some explain in general what exactly this is (why is it necessary? it sounds like a hack), why it only seems relates to received FIX messages, and is not used at all when using Python?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:06:55+00:00Added an answer on June 14, 2026 at 7:06 am

    In practice, all you need to know is this:

    Your fromApp() callback gets a Message object. That message is actually a NewOrderSingle or ExecutionReport or something. Rather than making you figure it out, QF lets you inherit from MessageCracker. To use it, call crack() in your fromApp(), as follows:

    void fromApp( const FIX::Message& message, const FIX::SessionID& sessionID )
      throw( FIX::FieldNotFound&, FIX::IncorrectDataFormat&, FIX::IncorrectTagValue&, FIX::UnsupportedMessageType& )
    {
      crack(message, sessionID);
    }
    

    What crack() does is this:

    1. Converts your Message into the proper subclass (e.g. NewOrderSingle, ExecutionReport, etc)
    2. Calls your user-defined onMessage(subtype) callback, if defined. If not defined, it throws an UnsupportedMessageType exception and your app will automatically send a BusinessMessageReject (35=j) to the counterparty.

    So, do you want to handle NewOrderSingle messages? Great, just define an onMessage(NewOrderSingle) callback.

    void onMessage( const FIX42::NewOrderSingle& message, const FIX::SessionID& )
    {
      // Do whatever you want with your NewOrderSingle message's content.
      // Note that this message and the one passed to crack() are the same, content-wise.
    }
    

    Do you want to handle ExecutionReports? Define onMessage(ExecutionReport). And so on.

    But what about those message types you don’t want to handle? It would suck if you had to add handlers to reject all those other message types, but luckily, you don’t have to. As I said earlier, if you don’t define an onMessage(), QF will reject it for you. (If you want to swallow a particular message type and ignore it without rejection, then just define an onMessage() call with no body.)

    Does that clear it up a bit? Perhaps now this page in the QF docs might read a little easier — the bottom section talks about the MessageCracker.

    Note: The MessageCracker does not handle session-level (aka “admin”) messages. If you want to add custom handling for, say, Logon or Heartbeat messages, you must do it explicitly in fromAdmin() (see this question for more info).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is very basic question from programming point of view but as I am
Very basic question - how to get one value from a generator in Python?
This is a very basic question...quite embarassing, but here goes: I have a Stopwatch
I just moved from php to asp.net. I'm trying to deploy a very basic
I have a very basic XML parser based on the tutorial provided here ,
Two very basic questions about exception handling in Delphi. 1) When to Try ?
I'm having a difficult time getting answers to a few very basic PHP questions.
This is a very basic question, I think I ask very tough questions on
Please forgive the very basic nature of this questions - but we all have
I m still in here. ;) I've got this code from a very expert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.