From c016de4f6f8ef3c0c888f4bf97ae057866450658 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Sun, 4 Feb 2018 10:28:04 +0800 Subject: [PATCH] Update ctaHistoryData.py --- vnpy/trader/app/ctaStrategy/ctaHistoryData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/ctaStrategy/ctaHistoryData.py b/vnpy/trader/app/ctaStrategy/ctaHistoryData.py index 4ec8b159..ee5f0872 100644 --- a/vnpy/trader/app/ctaStrategy/ctaHistoryData.py +++ b/vnpy/trader/app/ctaStrategy/ctaHistoryData.py @@ -228,7 +228,7 @@ def loadOKEXCsv(fileName, dbName, symbol): bar.vtSymbol = symbol bar.symbol = symbol - bar.datetime = datetime.strptime(d[1], '%Y-%m-%d %H:%M') + bar.datetime = datetime.strptime(d[1], '%Y-%m-%d %H:%M:%S') bar.date = bar.datetime.date().strftime('%Y%m%d') bar.time = bar.datetime.time().strftime('%H:%M:%S')