0

下面附上配置文件

    [default]
PersistMessages=Y
ConnectionType=initiator
UseDataDictionary=Y

[SESSION] 
ConnectionType=initiator
FileStorePath=store 
FileLogPath=fixlog 
StartTime=00:00:00
EndTime=00:00:00
BeginString=FIXT.1.1
AppDataDictionary=FIX50SP2.xml 
TransportDataDictionary=FIXT.1.1.xml
DefaultApplVerID=FIX.5.0SP2
SenderCompID=xxxxx
TargetCompID=yyyyy
DeliverToCompID=zzzzz
Username=xxxxxx
Password=yyyyyy
SocketConnectHost=aaaa
SocketConnectPort=xxxxx
HeartBtInt=20
#ReconnectInterval=30 
ResetOnLogon=Y
#ResetOnLogout=Y 
#ResetOnDisconnect=Y

[SESSION] 
ConnectionType=initiator
FileStorePath=store 
FileLogPath=fixlog 
StartTime=00:00:00
EndTime=00:00:00
BeginString=FIXT.1.1
AppDataDictionary=FIX50SP2.xml 
TransportDataDictionary=FIXT.1.1.xml
DefaultApplVerID=FIX.5.0SP2
SenderCompID=aaaaa
TargetCompID=bbbb
Username=xxxxx
Password=cccccc
DeliverToCompID=yyyyy
SocketConnectHost=xxxxx
SocketConnectPort=dddddd
HeartBtInt=20
#ReconnectInterval=30 
ResetOnLogon=Y

注销我正在发送的一个会话

QuickFix.Session.LookupSession(priceSessionID).Logout();

我收到了特定会话的注销。我的问题是,如何在不注销另一个会话的情况下登录到同一个会话?并且不停止发起者。

4

1 回答 1

0

QF 并非真正适用于手动登录或注销的情况。

预期的工作流程是:

  1. 随时启动您的应用程序。
  2. 如果当前时间在配置的会话窗口内,尝试登录
  3. 如果当前时间不在配置的会话窗口内,请等到会话开始时间,然后尝试登录
  4. 当会话结束时间发生时,注销。
于 2016-08-31T16:35:11.290 回答