After reading the config file:
f = "excfg.cfg"
settings = fix.SessionSettings(f)
Is it possible to modify the settings of a particular session dynamically? For example modifying the TargetCompID
or the SocketAcceptPort
.
I am pretty much looking for an alternative to this:
dictionary = settings.get()
id1 = fix.SessionID(dictionary.getString(fix.BEGINSTRING),
dictionary.getString(fix.SENDERCOMPID), "EX1")
dictionary.setInt(fix.SOCKET_ACCEPT_PORT, 7001)
settings.set(id1, dictionary)
Where I don't create a new SessionID
but modify the existing one from the config file, before the SocketAcceptor/SocketInitiator
function is called.