Fix timestamps in custom data algorithms (#5426)

* Correct custom data timestamp and match performance across languages

* Add EndTime property

* Add comment for crypto SetHoldings
This commit is contained in:
Derek Melchin
2021-03-30 15:48:59 -06:00
committed by GitHub
parent 4a1485a291
commit 5ed61db2bb
8 changed files with 51 additions and 37 deletions
@@ -125,6 +125,7 @@ class Bitcoin(PythonData):
try:
data = line.split(',')
coin.Time = datetime.strptime(data[0], "%Y-%m-%d")
coin.EndTime = coin.Time + timedelta(days=1)
coin.Value = float(data[4])
coin["Open"] = float(data[1])
coin["High"] = float(data[2])