Update engine.py

This commit is contained in:
1122455801 2019-04-13 18:37:09 +08:00
parent 4c83b08315
commit c765a8f123

View File

@ -41,17 +41,17 @@ class CsvLoaderEngine(BaseEngine):
""""""
super().__init__(main_engine, event_engine, APP_NAME)
self.file_path: str = ''
self.file_path: str = ""
self.symbol: str = ""
self.exchange: Exchange = Exchange.SSE
self.interval: Interval = Interval.MINUTE
self.datetime_head: str = ''
self.open_head: str = ''
self.close_head: str = ''
self.low_head: str = ''
self.high_head: str = ''
self.volume_head: str = ''
self.datetime_head: str = ""
self.open_head: str = ""
self.close_head: str = ""
self.low_head: str = ""
self.high_head: str = ""
self.volume_head: str = ""
def load(
self,
@ -74,7 +74,7 @@ class CsvLoaderEngine(BaseEngine):
end = None
count = 0
with open(file_path, 'rt') as f:
with open(file_path, "rt") as f:
reader = csv.DictReader(f)
db_bars = []