Merge pull request #1592 from 1122455801/CSV_load

CSV_load.py里面engine文件,字符串有单引号 该成 双引号
This commit is contained in:
vn.py 2019-04-14 09:49:58 +08:00 committed by GitHub
commit 5c5e6e9e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = []