处理process打错的问题

This commit is contained in:
chenxy123 2016-10-28 22:35:32 +08:00
parent f87d95d982
commit 261b60759b

View File

@ -235,7 +235,7 @@ class CtaEngine(object):
del self.workingStopOrderDict[so.stopOrderID]
#----------------------------------------------------------------------
def procecssTickEvent(self, event):
def processTickEvent(self, event):
"""处理行情推送"""
tick = event.dict_['data']
# 收到tick行情后先处理本地停止单检查是否要立即发出
@ -308,7 +308,7 @@ class CtaEngine(object):
#----------------------------------------------------------------------
def registerEvent(self):
"""注册事件监听"""
self.eventEngine.register(EVENT_TICK, self.procecssTickEvent)
self.eventEngine.register(EVENT_TICK, self.processTickEvent)
self.eventEngine.register(EVENT_ORDER, self.processOrderEvent)
self.eventEngine.register(EVENT_TRADE, self.processTradeEvent)
self.eventEngine.register(EVENT_POSITION, self.processPositionEvent)