From 5fcc592f3534209b249aa211249e32aeb89ba39d Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 19 Mar 2024 13:55:19 -0400 Subject: [PATCH] OHLC fix --- src/dexorder/ohlc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dexorder/ohlc.py b/src/dexorder/ohlc.py index b1a127e..f0bdaf2 100644 --- a/src/dexorder/ohlc.py +++ b/src/dexorder/ohlc.py @@ -152,7 +152,7 @@ def update_ohlc(prev: NativeOHLC, period: timedelta, time: datetime, price: Opti returns an ordered list of OHLC's that have been created/modified by the new time/price if price is None, then bars are advanced based on the time but no new price is added to the series. """ - log.debug(f'\tupdating {prev} with {minutely(time)} {price}') + # log.debug(f'\tupdating {prev} with {minutely(time)} {price}') cur = prev if time < cur.start: # data corruption. just shut down @@ -171,7 +171,7 @@ def update_ohlc(prev: NativeOHLC, period: timedelta, time: datetime, price: Opti cur.update(price) result.append(cur) # log.debug(f'\tappended current bar: {cur.ohlc}') - log.debug(f'\tupdate result: {result}') + # log.debug(f'\tupdate result: {result}') return result class OHLCKey (NamedTuple):