From ec1955a5c0a9a32bfe9e220b42df13e8589e3688 Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Mon, 3 Jun 2019 14:48:32 +0800 Subject: [PATCH] Update tiger_gateway.py --- vnpy/gateway/tiger/tiger_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/tiger/tiger_gateway.py b/vnpy/gateway/tiger/tiger_gateway.py index 0d7202a3..3f044607 100644 --- a/vnpy/gateway/tiger/tiger_gateway.py +++ b/vnpy/gateway/tiger/tiger_gateway.py @@ -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)