in fix_session.py [0:0]
def __init__(self, config_file):
self.settings = fix.SessionSettings(config_file)
self.config = configparser.ConfigParser()
self.config.read(config_file)
sender_pwd = None
if "SESSION" in self.config and "SenderPassword" in self.config["SESSION"]:
sender_pwd = self.config["SESSION"]["SenderPassword"]
self.application = Application()
if sender_pwd:
self.application.setSessionPassword(sender_pwd)
else:
print("Warning: SESSION SenderPassword is not specified in config file: " + config_file)
store_factory = fix.FileStoreFactory(self.settings)
log_factory = fix.FileLogFactory(self.settings)
self.initiator = fix.SocketInitiator(self.application, store_factory, self.settings, log_factory)