From 8e197bd06f972962a17297f5a05d5b69587ab46d Mon Sep 17 00:00:00 2001 From: gnzsnz <8376642+gnzsnz@users.noreply.github.com> Date: Fri, 5 Dec 2025 17:04:08 +0100 Subject: [PATCH] fix Timebars typo This typo is breaking timebars class. there is no `isUnset` method in timebars class. reverting change to `isNan` helper function. --- ib_async/ticker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ib_async/ticker.py b/ib_async/ticker.py index 9771c89..616eb10 100644 --- a/ib_async/ticker.py +++ b/ib_async/ticker.py @@ -389,7 +389,7 @@ def on_source(self, time, price, size): def _on_timer(self, time): if self.bars: bar = self.bars[-1] - if self.isUnset(bar.close) and len(self.bars) > 1: + if isNan(bar.close) and len(self.bars) > 1: bar.open = bar.high = bar.low = bar.close = self.bars[-2].close self.bars.updateEvent.emit(self.bars, True)