I'm using quickfixj. I have a custom message like "EndTrade", when I got that message, I want to end fix session? How can I do that? I have not find any way to do so.
It is not allowing me to use new Session().logout()
.
Asked
Active
Viewed 4,466 times
6

Muneeb Nasir
- 2,414
- 4
- 31
- 54
-
what is wrong with the done for day message? – MD-Tech Jun 11 '14 at 09:03
-
how can I end session? – Muneeb Nasir Jun 11 '14 at 09:12
-
1Disconnecting or sending a logout message will terminate the session – MD-Tech Jun 11 '14 at 09:44
-
Muneeb, this is a very unusual thing to do with FIX. – Grant Birchmeier Jun 12 '14 at 02:56
1 Answers
8
I got answer of my question. you can logout your fix session in following way.
Session.lookupSession(sessionID).logout();

Muneeb Nasir
- 2,414
- 4
- 31
- 54