Update engine.py
This commit is contained in:
parent
4c83b08315
commit
c765a8f123
@ -41,17 +41,17 @@ class CsvLoaderEngine(BaseEngine):
|
|||||||
""""""
|
""""""
|
||||||
super().__init__(main_engine, event_engine, APP_NAME)
|
super().__init__(main_engine, event_engine, APP_NAME)
|
||||||
|
|
||||||
self.file_path: str = ''
|
self.file_path: str = ""
|
||||||
|
|
||||||
self.symbol: str = ""
|
self.symbol: str = ""
|
||||||
self.exchange: Exchange = Exchange.SSE
|
self.exchange: Exchange = Exchange.SSE
|
||||||
self.interval: Interval = Interval.MINUTE
|
self.interval: Interval = Interval.MINUTE
|
||||||
self.datetime_head: str = ''
|
self.datetime_head: str = ""
|
||||||
self.open_head: str = ''
|
self.open_head: str = ""
|
||||||
self.close_head: str = ''
|
self.close_head: str = ""
|
||||||
self.low_head: str = ''
|
self.low_head: str = ""
|
||||||
self.high_head: str = ''
|
self.high_head: str = ""
|
||||||
self.volume_head: str = ''
|
self.volume_head: str = ""
|
||||||
|
|
||||||
def load(
|
def load(
|
||||||
self,
|
self,
|
||||||
@ -74,7 +74,7 @@ class CsvLoaderEngine(BaseEngine):
|
|||||||
end = None
|
end = None
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
with open(file_path, 'rt') as f:
|
with open(file_path, "rt") as f:
|
||||||
reader = csv.DictReader(f)
|
reader = csv.DictReader(f)
|
||||||
|
|
||||||
db_bars = []
|
db_bars = []
|
||||||
|
Loading…
Reference in New Issue
Block a user