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