简体   繁体   English

QuickFix配置:我应设置哪些设置以永不尝试登录?

[英]QuickFix configuration: What settings do I set to never attempt to login?

I have several instances of software that read a QF configuration file. 我有几个读取QF配置文件的软件实例。 The default setting is to log in in the morning and out in the evening. 默认设置是早上登录,晚上登录。

StartTime=07:00:00
EndTime=21:00:00

However, I need one instance to run, but not log in. How can I do this? 但是,我需要一个实例来运行,但不需要登录。我该怎么办? Do I need to override the default times ( if so, with what? ) or is there another field I can set? 我是否需要覆盖默认时间(如果是,用什么?)还是可以设置其他字段?

Thanks! 谢谢!

Session is setup by default when an initiator connects to an acceptor. 当启动器连接到接受器时,默认情况下会设置会话。 The engine is so designed, as FIX demands , that the first message is the Logon message. 根据FIX的要求 ,引擎的设计应确保第一个消息是Logon消息。 If any other message is sent before a logon message it will be discarded. 如果在登录消息之前发送了其他任何消息,它将被丢弃。 If no logon happens before messages are transferred you will open up a can of worms. 如果在邮件传输之前没有登录,您将打开一罐蠕虫。 Anybody can set up a session and start doing whatever they want. 任何人都可以设置会话并开始做他们想做的任何事情。

If you want QF to never log in automatically you could try setting the StartTime and EndTime to the same value (but not 00:00:00). 如果希望QF从不自动登录,则可以尝试将StartTime和EndTime设置为相同的值(而不是00:00:00)。 The other purpose of StartTime/EndTime is to automatically reset sequence numbers for each session time period. StartTime / EndTime的另一个目的是为每个会话时间段自动重置序列号。 If you disable this, you might need to manually reset your sequence numbers each day. 如果禁用此功能,则可能需要每天手动重置序列号。 However, it's possible that QF will still reset the sequence numbers each day even with a zero-length session when the time crosses the session StartTime. 但是,即使在时间长度超过会话开始时间的情况下,即使会话长度为零,QF仍可能每天都会重置序列号。

The other answer is incorrect. 另一个答案不正确。 You can actually "send" messages before logging in. The engine will store those messages until the session is eventually initiated. 实际上,您可以在登录之前“发送”消息。引擎将存储这些消息,直到最终启动会话为止。 The FIX engine's gap fill logic will then transmit the messages that were sent (to the engine) before the session was established through a proper log in. 然后,FIX引擎的间隙填充逻辑将通过适当的登录建立会话之前,发送已发送的消息(发送给引擎)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM