ohlc path fix
This commit is contained in:
@@ -30,7 +30,7 @@ class OHLCFilePath:
|
||||
self.start = start = datetime(time.year, time.month, time.day, tzinfo=timezone.utc)
|
||||
self.end = self.start + timedelta(days=1)
|
||||
self.file_interval = timedelta(days=1)
|
||||
self.filepath += f'{start.year}/{start.month}/{symbol}-{name}-{start:%Y%m%d}.csv'
|
||||
self.filepath += f'{start.year}/{start.month:02}/{symbol}-{name}-{start:%Y%m%d}.csv'
|
||||
elif period < timedelta(days=1):
|
||||
# one file per month
|
||||
# log.debug(f'{name} is monthly')
|
||||
|
||||
Reference in New Issue
Block a user