[Mod] 整理格式

This commit is contained in:
nanoric 2018-10-12 03:11:09 -04:00
parent 7cf5825bbe
commit c8a071f38e

View File

@ -82,7 +82,6 @@ def remoteSymbolToLocal(remoteSymbol, localContractType):
return remoteSymbol.upper() + localContractType return remoteSymbol.upper() + localContractType
######################################################################## ########################################################################
class VnpyGateway(VtGateway): class VnpyGateway(VtGateway):
""" """
@ -132,9 +131,13 @@ class VnpyGateway(VtGateway):
""" """
pass pass
########################################################################
class _Order(object): class _Order(object):
_lastLocalId = 0 _lastLocalId = 0
def __init__(self):
#----------------------------------------------------------------------
def __ini__(self):
_Order._lastLocalId += 1 _Order._lastLocalId += 1
self.localId = str(_Order._lastLocalId) self.localId = str(_Order._lastLocalId)
self.remoteId = None self.remoteId = None
@ -377,7 +380,7 @@ class OkexFutureGateway(VnpyGateway):
self._pushOrderAsTraded(myorder.vtOrder) 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: for info in infos:
vtAccount = VtAccountData() vtAccount = VtAccountData()
vtAccount.accountID = info.easySymbol vtAccount.accountID = info.easySymbol