Update tiger_gateway.py

This commit is contained in:
1122455801 2019-06-03 14:48:32 +08:00
parent 3b18570254
commit ec1955a5c0

View File

@ -254,7 +254,7 @@ class TigerGateway(BaseGateway):
)
self.ticks[symbol] = tick
tick.datetime = datetime.fromtimestamp(int(data["latest_time"]) / 1000)
tick.datetime = datetime.fromtimestamp(int(data["timestamp"]) / 1000)
tick.pre_close = data.get("prev_close", tick.pre_close)
tick.last_price = data.get("latest_price", tick.last_price)
tick.volume = data.get("volume", tick.volume)