diff --git a/examples/VnTrader/data/TRADE_MARKET_110100001088sop.dat b/examples/VnTrader/data/TRADE_MARKET_110100001088sop.dat new file mode 100644 index 00000000..1705e20c --- /dev/null +++ b/examples/VnTrader/data/TRADE_MARKET_110100001088sop.dat @@ -0,0 +1 @@ +v0yuhbdjKS4ZfL61IX4zXw== \ No newline at end of file diff --git a/examples/VnTrader/data/TRADE_MARKET_110100001088stock.dat b/examples/VnTrader/data/TRADE_MARKET_110100001088stock.dat index ee0abefc..8b63299c 100644 --- a/examples/VnTrader/data/TRADE_MARKET_110100001088stock.dat +++ b/examples/VnTrader/data/TRADE_MARKET_110100001088stock.dat @@ -1 +1 @@ -o/qNWiWU4xYqVMOeeIVgnQ== \ No newline at end of file +GiYAgGqqW99wdcqcciwrbQ== \ No newline at end of file diff --git a/vnpy/trader/gateway/futuGateway/futuGateway.py b/vnpy/trader/gateway/futuGateway/futuGateway.py index 71635890..ab672443 100644 --- a/vnpy/trader/gateway/futuGateway/futuGateway.py +++ b/vnpy/trader/gateway/futuGateway/futuGateway.py @@ -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): diff --git a/vnpy/trader/gateway/secGateway/secGateway.py b/vnpy/trader/gateway/secGateway/secGateway.py index f63f667e..c1f3f005 100644 --- a/vnpy/trader/gateway/secGateway/secGateway.py +++ b/vnpy/trader/gateway/secGateway/secGateway.py @@ -1066,7 +1066,7 @@ class SecTdApi(TdApi): log.logContent = u'期权交易服务器登录完成' self.gateway.onLog(log) - #self.qryOptionContracts() + self.qryOptionContracts() # 否则,推送错误信息 else: