问题
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