修复CTP接口相关DEMO查询结算信息回报后的多次返回的bug
This commit is contained in:
parent
ae633f5ca0
commit
c3d6e0aa3b
@ -477,12 +477,13 @@ class DemoTdApi(TdApi):
|
||||
#----------------------------------------------------------------------
|
||||
def onRspQrySettlementInfo(self, data, error, n, last):
|
||||
"""查询结算信息回报"""
|
||||
event = Event(type_=EVENT_LOG)
|
||||
log = u'结算信息查询完成'
|
||||
event.dict_['log'] = log
|
||||
self.__eventEngine.put(event)
|
||||
|
||||
self.confirmSettlement() # 查询完成后立即确认结算信息
|
||||
if last:
|
||||
event = Event(type_=EVENT_LOG)
|
||||
log = u'结算信息查询完成'
|
||||
event.dict_['log'] = log
|
||||
self.__eventEngine.put(event)
|
||||
|
||||
self.confirmSettlement() # 查询完成后立即确认结算信息
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def onRspQryTransferBank(self, data, error, n, last):
|
||||
|
@ -477,12 +477,13 @@ class DemoTdApi(TdApi):
|
||||
#----------------------------------------------------------------------
|
||||
def onRspQrySettlementInfo(self, data, error, n, last):
|
||||
"""查询结算信息回报"""
|
||||
event = Event(type_=EVENT_LOG)
|
||||
log = u'结算信息查询完成'
|
||||
event.dict_['log'] = log
|
||||
self.__eventEngine.put(event)
|
||||
|
||||
self.confirmSettlement() # 查询完成后立即确认结算信息
|
||||
if last:
|
||||
event = Event(type_=EVENT_LOG)
|
||||
log = u'结算信息查询完成'
|
||||
event.dict_['log'] = log
|
||||
self.__eventEngine.put(event)
|
||||
|
||||
self.confirmSettlement() # 查询完成后立即确认结算信息
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def onRspQryTransferBank(self, data, error, n, last):
|
||||
|
Loading…
Reference in New Issue
Block a user