[Fix]修复飞创期权合约查询问题,富途证券接口退出问题

This commit is contained in:
vn.py 2017-10-23 13:46:51 +08:00
parent 7cee25bab9
commit f59ed6b152
4 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1 @@
v0yuhbdjKS4ZfL61IX4zXw==

View File

@ -1 +1 @@
o/qNWiWU4xYqVMOeeIVgnQ==
GiYAgGqqW99wdcqcciwrbQ==

View File

@ -353,8 +353,10 @@ class FutuGateway(VtGateway):
#----------------------------------------------------------------------
def close(self):
"""关闭"""
self.quoteCtx.stop()
self.tradeCtx.stop()
if self.quoteCtx:
self.quoteCtx.stop()
if self.tradeCtx:
self.tradeCtx.stop()
#----------------------------------------------------------------------
def initQuery(self):

View File

@ -1066,7 +1066,7 @@ class SecTdApi(TdApi):
log.logContent = u'期权交易服务器登录完成'
self.gateway.onLog(log)
#self.qryOptionContracts()
self.qryOptionContracts()
# 否则,推送错误信息
else: