From c8a071f38e028d095a74612810b742ea6febe145 Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 12 Oct 2018 03:11:09 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E6=95=B4=E7=90=86=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/okexFutureGateway/okexFutureGateway.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vnpy/trader/gateway/okexFutureGateway/okexFutureGateway.py b/vnpy/trader/gateway/okexFutureGateway/okexFutureGateway.py index 4bb6dfd5..aa258fe9 100644 --- a/vnpy/trader/gateway/okexFutureGateway/okexFutureGateway.py +++ b/vnpy/trader/gateway/okexFutureGateway/okexFutureGateway.py @@ -82,7 +82,6 @@ def remoteSymbolToLocal(remoteSymbol, localContractType): return remoteSymbol.upper() + localContractType - ######################################################################## class VnpyGateway(VtGateway): """ @@ -132,9 +131,13 @@ class VnpyGateway(VtGateway): """ pass + +######################################################################## class _Order(object): _lastLocalId = 0 - def __init__(self): + + #---------------------------------------------------------------------- + def __ini__(self): _Order._lastLocalId += 1 self.localId = str(_Order._lastLocalId) self.remoteId = None @@ -377,7 +380,7 @@ class OkexFutureGateway(VnpyGateway): self._pushOrderAsTraded(myorder.vtOrder) #---------------------------------------------------------------------- - def _onQueryAccount(self, infos, extra): # type: (List[OkexFutureUserInfo], Any)->None + def _onQueryAccount(self, infos, _): # type: (List[OkexFutureUserInfo], Any)->None for info in infos: vtAccount = VtAccountData() vtAccount.accountID = info.easySymbol