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')