import sys # from datetime import datetime import quickfix as fix import quickfix50sp2 as fix50 import time import logging import threading from model.logger import setup_logger # from tornado import ioloop __SOH__ = chr(1) # Logger setup_logger( 'FIX', 'C:/Users/pseoane/Documents/Python Projects/ROFEX-QuickFix/Main/Logs/message.log' ) # setup_logger('FIX', '../Logs/message.log') logfix = logging.getLogger('FIX') class Application(fix.Application): """FIX Application""" def __init__(self): super().__init__() self.sessionID = None self.session_off = True self.contractList = None self.secStatus = "secStatus" self.ListaContratos = "ListaContratos"
"""FIX Application""" import sys import quickfix as fix import logging import time from model import Field from model.Message import Base, Types, __SOH__ from model.logger import setup_logger setup_logger('logfix', 'Logs/message.log') logfix = logging.getLogger('logfix') class Application(fix.Application): """FIX Application""" sessionID = None OrderID = 0 def onCreate(self, sessionID): """onCreate""" return def onLogon(self, sessionID): self.sessionID = sessionID """onLogon""" return def onLogout(self, sessionID): """onLogout""" return
"""FIX Application""" import sys # from datetime import datetime import quickfix as fix import quickfix42 as fix42 import quickfix44 as fix44 import time import logging from model.logger import setup_logger from model import Field # configured __SOH__ = chr(1) # Logger setup_logger('FIX', 'Logs/message.log') logfix = logging.getLogger('FIX') class Application(fix.Application): """FIX Application""" def onCreate(self, sessionID): self.sessionID = sessionID return def onLogon(self, sessionID): self.sessionID = sessionID return def onLogout(self, sessionID): return