From 432a1e84b9fe015d83b83526c3a09eaeff8651ed Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 6 Aug 2024 20:00:08 -0400 Subject: [PATCH] ohlc path fix --- src/dexorder/final_ohlc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')