quickfix C+ Incorrect BeginString with FIXT.1.1 and FIX.5.0 - FIX.5.0SP2

試著忘記壹切 提交于 2021-02-08 10:41:12

问题


I'm creating an initiator and acceptor which speak FIX.5.0SP2. I'm getting an "58":"Incorrect BeginString" error on logon, on the acceptor (and on fromAdmin on the initiator). I believe my configs are correct:

initiator:

# default settings for sessions
[DEFAULT]
ConnectionType=initiator
ReconnectInterval=60
UseLocalTime=Y
PersistMessages=Y
FileStorePath=./data
FileLogPath=./log
HttpAcceptPort=9016
SenderCompID=X
BeginString=FIXT.1.1
TransportDataDictionary=./support/FIXT11.xml

[SESSION]
TargetCompID=Y
StartTime=00:00:00
EndTime=23:59:59
HeartBtInt=30
SocketConnectPort=8599
SocketConnectHost=localhost
DefaultApplVerID=FIX.5.0SP2
AppDataDictionary=./support/FIX50SP2.xml

acceptor:

# default settings for sessions
[DEFAULT]
ConnectionType=acceptor
ReconnectInterval=60
UseLocalTime=Y
PersistMessages=Y
PostgreSQLStoreDatabase=quickfix
PostgreSQLStoreUser=xx
PostgreSQLStoreHost=localhost
PostgreSQLStorePort=5432
PostgreSQLStoreUseConnectionPool=Y
PostgreSQLLogDatabase=quickfix
PostgreSQLLogUser=electronifie
PostgreSQLLogHost=localhost
PostgreSQLLogPort=5432
PostgreSQLLogUseConnectionPool=Y
FileStorePath=./data
FileLogPath=./log
HttpAcceptPort=9212
SenderCompID=Y
BeginString=FIXT.1.1
TransportDataDictionary=./support/FIXT11.xml

[SESSION]
TargetCompID=X
StartTime=00:00:00
EndTime=23:59:59
HeartBtInt=30
SocketAcceptPort=8599
DefaultApplVerID=FIX.5.0SP2
AppDataDictionary=./support/FIX50SP2.xml

I've tried all sorts of permutations and none seem to work.

Is there an error in the BeginString logic?

Thanks,

Matt

EDIT: adding logs:

acceptor event log: http://gist.github.com/mateodelnorte/167a83990801d7bb506e 
acceptor message log: http://gist.github.com/mateodelnorte/6d1f400a4e61875afee9 

initiator event log: http://gist.github.com/mateodelnorte/a376c6cc0eb0f71bd222 
initiator message log: http://gist.github.com/mateodelnorte/5c1b0c4ca2dda3e93b29 

回答1:


Check your dictionary, it should say something like

<fix type='FIXT' major='1' minor='1' servicepack='0'>

If the dictionary on the acceptor receives a version that isn't in the dictionary it will return that error.




回答2:


Please, you can try as follow [SESSION] BeginString=FIXT.1.1 BeginString=FIX.VERSION



来源:https://stackoverflow.com/questions/30598205/quickfix-c-incorrect-beginstring-with-fixt-1-1-and-fix-5-0-fix-5-0sp2

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