Is it necessary to logout prior to closing the connection to the FIX API?
Is it necessary to logout prior to closing the connection to the FIX API?
03 May 2023, 03:26
I'm writing a "cleanup function" that should be ran before my program closes.
Right now it just closes the connection between the FIX API and the client (I'm using golang).
If it is necessary to logout before closing the connection, what would i do in the event that the connection closes by itself? Should i use the Heartbeat?
Replies
johnson.fergusaka
03 May 2023, 19:12
RE:
PanagiotisChar said:
Hi there,
If it is necessary to logout before closing the connection
It is not, the server will close the connection if it does not receive a heartbeat
what would i do in the event that the connection closes by itself?
Just connect again.
Need help? Join us on Telegram
Need premium support? Trade with us
So if I set heartbeat to 0, I would have to close the connection myself?
@johnson.fergusaka
PanagiotisChar
04 May 2023, 10:56
Hi,
No you don't. The server will close the connection evetnually.
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar
PanagiotisChar
03 May 2023, 09:10
Hi there,
It is not, the server will close the connection if it does not receive a heartbeat
Just connect again.
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar