简体   繁体   English

Quickfixn c# MarketDataSnapshotFullRefresh 但无法获取行情数据

[英]Quickfixn c# MarketDataSnapshotFullRefresh but cannot get market data

I am getting market data via quickfixN open source project and using MarketDataSnapshotFullRefresh project.我通过 quickfixN 开源项目获取市场数据并使用 MarketDataSnapshotFullRefresh 项目。 I set 1 minute between the start and end times on config file.System logged out at end time and logged on in 1 minute later.我在配置文件的开始和结束时间之间设置了 1 分钟。系统在结束时间注销并在 1 分钟后登录。 No problem so far... But I'm not able to get market data.到目前为止没问题......但我无法获得市场数据。 I'm only getting heartbeat data.我只得到心跳数据。
Any ideas why I can't get the market data?为什么我无法获得市场数据有什么想法吗?

Config File配置文件

[DEFAULT] 
PersistMessages=Y 
ConnectionType=initiator
UseDataDictionary=Y
FileStorePath=store 
FileLogPath=log 

[SESSION] 
ConnectionType=initiator
BeginString=FIXT.1.1
DefaultApplVerID=FIX.5.0
TransportDataDictionary= C:\FIXT11.xml
AppDataDictionary= FIX50.xml 
SenderCompID=COMPANY
SenderSubID=COMPANY.SUB
TargetCompID= TARGET_COMPANY
SenderLocationID=QUOTE
SocketConnectHost= 127.0.0.1
SocketConnectPort= 2003
StartTime= 09:26:00
EndTime= 09:25:00
HeartBtInt=20
ReconnectInterval=30
ResetOnLogon=Y
ResetOnLogout=Y 
ResetOnDisconnect=Y
ResetSeqNumFlag=Y

Counterparty sent to me info.交易对方发给我的信息。 While in the test environment it was enough to subscribe to the exchange rate codes only once, I had to subscribe every time I logon the prod environment.虽然在测试环境中只需订阅一次汇率代码就足够了,但我每次登录生产环境时都必须订阅。 I added subscribe code in OnLogon method.我在 OnLogon 方法中添加了订阅代码。 It is solved.它被解决了。

 public void OnLogon(SessionID sessionID)
 {
    LogFix.Info("Logon - " + sessionID.ToString());
    RunQueryMarketDataRequest();
 }

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

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