Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick Fix Java based Fix client - Is socket initiator and acceptor both needed for sending messages and receiving response back

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.

like image 228
user3405212 Avatar asked Oct 15 '25 14:10

user3405212


1 Answers

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.

like image 76
TT. Avatar answered Oct 19 '25 02:10

TT.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!