3

I am working on a solution to send FIX messages generated for trades done to a third party system using quick fix java library. Third party system will some times send back response for these messages or messages related to these after some time.

My understanding is that I just need to start the SocketInitiator to connect to the third party server and send the messages using send method in session. When server sends the message back, I will get the callback in the Application class toApp method.

Is my understanding correct or do I need to start the SocketAcceptor in another session to receieve the messages from third party server.

user3405212
  • 61
  • 1
  • 5

2 Answers2

1

Your understanding is correct. The SocketInitiator should be enough.

You can take a look at the Banzai example that comes with the QuickFIX/J library. You will see your understanding confirmed in Banzai.java.

TT.
  • 15,774
  • 6
  • 47
  • 88
1

Yes, your understanding is correct.

Lets have a look at the basic definition.

Initiator : The party which initiates the connection to the remote FIX server (always using an IP address and a port number).

Acceptor: The party which runs the FIX process and monitors a particular port for incoming FIX connections.

You need not to set up Socket Acceptor as initiator itself will receive message in callbacks.

Techienik
  • 71
  • 3