From ea3ca6427aa52c0567bddcb17392e2ffe50c9019 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 9 Aug 2017 12:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90OANDA=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=A1=8C=E6=83=85=E6=97=B6=E9=97=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E6=AF=AB=E7=A7=92=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/oandaGateway/oandaGateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/gateway/oandaGateway/oandaGateway.py b/vnpy/trader/gateway/oandaGateway/oandaGateway.py index 642c81bf..94b2cccb 100644 --- a/vnpy/trader/gateway/oandaGateway/oandaGateway.py +++ b/vnpy/trader/gateway/oandaGateway/oandaGateway.py @@ -329,7 +329,7 @@ class Api(OandaApi): tick.vtSymbol = '.'.join([tick.symbol, tick.exchange]) tick.bidPrice1 = d['bid'] tick.askPrice1 = d['ask'] - tick.time = getTime(d['time']) + tick.time = getTime(d['time']) + '.0' # 补齐毫秒部分 # 做市商的TICK数据只有买卖的报价,因此最新价格选用中间价代替 tick.lastPrice = (tick.bidPrice1 + tick.askPrice1)/2