Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to throw a FIX exception from a node callback function? #57

Open
ajoseps opened this issue Jan 14, 2020 · 0 comments
Open

Comments

@ajoseps
Copy link

ajoseps commented Jan 14, 2020

This is part of the quickfix documentation:
toApp is a callback for application messages that are being sent to a counterparty. If you throw a DoNotSend exception in this function, the application will not send the message. This is mostly useful if the application has been asked to resend a message such as an order that is no longer relevant for the current market. Messages that are being resent are marked with the PossDupFlag in the header set to true; If a DoNotSend exception is thrown and the flag is set to true, a sequence reset will be sent in place of the message. If it is set to false, the message will simply not be sent. Notice that the FIX::Message is not const. This allows you to add fields to an application message before it is sent out.

I want to create a DoNotSend exception in my toApp callback, but I do not know how to accomplish that. Is that possible to do with nodejs nan?

@ajoseps ajoseps changed the title Is there a way to throw a FIX error from a node callback function? Is there a way to throw a FIX exception from a node callback function? Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant