I need to send tag 58=something in 35=A (logon message) in FIX4.4. How should I configure .cfg file of QuickFIX tool to have this tag sent by the tool?

1

1 Answer

You wouldn't use the config file for that. (Not sure where you got that idea.)

Logon is an admin message, so you would do it in the toAdmin() callback. This callback handles all admin messages, though, so you need to write a check to make sure you only add it to Logon.

You could put this code in toAdmin():

final String msgType = msg.getHeader().getString(MsgType.FIELD); if(MsgType.LOGON.compareTo(msgType) == 0) { // "Text" is the name of field 58 // That constant literally resolves to int 58. msg.setString(quickfix.fields.Text.FIELD, "razzledazzle"); } 

(I'm assuming QF/j, but the code would be similar for any QF.)

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.