Changed Quanld source to correctly retrieve csv data, along with simple cleanup of import statements and use of Decimal

This commit is contained in:
Jack Simonson
2019-03-04 09:47:33 -08:00
parent cf1b6c363b
commit 0d963ccdd5
12 changed files with 30 additions and 42 deletions
+1 -2
View File
@@ -27,7 +27,6 @@ from QuantConnect.Python import PythonData
import numpy as np
from datetime import datetime
import decimal
import json
@@ -103,7 +102,7 @@ class Bitcoin(PythonData):
liveBTC = json.loads(line)
# If value is zero, return None
value = decimal.Decimal(liveBTC["last"])
value = liveBTC["last"]
if value == 0: return None
coin.Time = datetime.now()