Search code examples
quickfixfix-protocolquickfixn

How to tell FIX acceptor not to send messages if 43=Y


How to tell FIX acceptor not to send messages if 43=Y

or if that is not possible to be done from client side...

How to tell my initiator app to ignore incoming messages if 43=Y

QuickFixN version 1.5.0


Solution

  • I think you're saying that your app is the Initiator, and it is connecting to someone else's Acceptor, right? (Please correct me if I'm mistaken.)

    In that situation, you can't really tell the Acceptor how to behave. It's outside of your control.

    What you can do, is inside your OnMessage(ExecutionReport) function, just wrap your behavior in

    if(msg.Header.IsSetField(43) && msg.GetString(43)=="Y") {
        ...
    }