ohlc filename bugfix

This commit is contained in:
tim
2024-08-05 00:35:09 -04:00
parent a1ba66787a
commit 0547e9f442

View File

@@ -49,7 +49,7 @@ class OHLCFilePath:
self.start = start = datetime(time.year, 1, 1, tzinfo=timezone.utc)
self.end = datetime(time.year+1, 1, 1, tzinfo=timezone.utc)
self.file_interval = timedelta(days=366)
self.filepath += f'{start.year}/{symbol}-{name}-{start:%Y%m}.csv'
self.filepath += f'{start.year}/{symbol}-{name}-{start:%Y}.csv'
else:
# weeklies get one file for everything
# log.debug(f'{name} is a single file')