Merge pull request #1659 from 1122455801/mod_ofexf_01

[Fix] Okexf_gateway
This commit is contained in:
vn.py 2019-05-06 08:44:49 +08:00 committed by GitHub
commit 411fb869b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -700,10 +700,10 @@ class OkexfWebsocketApi(WebsocketClient):
if not tick:
return
tick.last_price = d["last"]
tick.high_price = d["high_24h"]
tick.low_price = d["low_24h"]
tick.volume = d["volume_24h"]
tick.last_price = float(d["last"])
tick.high_price = float(d["high_24h"])
tick.low_price = float(d["low_24h"])
tick.volume = float(d["volume_24h"])
tick.datetime = utc_to_local(d["timestamp"])
self.gateway.on_tick(copy(tick))