Update ctaHistoryData.py

This commit is contained in:
xldistance 2018-02-04 10:28:04 +08:00 committed by GitHub
parent 67227beaa9
commit c016de4f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ def loadOKEXCsv(fileName, dbName, symbol):
bar.vtSymbol = symbol bar.vtSymbol = symbol
bar.symbol = 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.date = bar.datetime.date().strftime('%Y%m%d')
bar.time = bar.datetime.time().strftime('%H:%M:%S') bar.time = bar.datetime.time().strftime('%H:%M:%S')