This commit is contained in:
vn.py 2018-08-04 21:57:09 +08:00
parent 030e448d37
commit 438bab3fff

View File

@ -526,6 +526,7 @@ class WebsocketApi(FcoinWebsocketApi):
tick.lastPrice = ticker[0] tick.lastPrice = ticker[0]
tick.volume = ticker[9] tick.volume = ticker[9]
if tick.askPrice1:
self.gateway.onTick(copy(tick)) self.gateway.onTick(copy(tick))
#---------------------------------------------------------------------- #----------------------------------------------------------------------
@ -565,6 +566,7 @@ class WebsocketApi(FcoinWebsocketApi):
tick.date = tick.datetime.strftime('%Y%m%d') tick.date = tick.datetime.strftime('%Y%m%d')
tick.time = tick.datetime.strftime('%H:%M:%S') tick.time = tick.datetime.strftime('%H:%M:%S')
if tick.lastPrice:
self.gateway.onTick(copy(tick)) self.gateway.onTick(copy(tick))