Quickfix Syncing Sequence Numbers

本秂侑毒 提交于 2019-12-18 07:09:06

问题


If, for whatever reason, my application loses track of what sequence number I was on, what is the recommended way of re-establishing the session to continue trading?


回答1:


If the acceptor receives a message out of sequence, it would send a reject message and the reason for it in the text field. In the text field it would mention the sequence number expected, so parse that part of the message, take the sequence number and start again.




回答2:


From FIX 4.1 onwards, the Logon message (A) contains a tag ResetSeqNumFlag (141). Setting it to 'Y' "indicates that both sides of the FIX session should reset sequence numbers."



来源:https://stackoverflow.com/questions/7800354/quickfix-syncing-sequence-numbers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!