diff --git a/src/dexorder/final_ohlc.py b/src/dexorder/final_ohlc.py index bd644d6..395d7ae 100644 --- a/src/dexorder/final_ohlc.py +++ b/src/dexorder/final_ohlc.py @@ -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')