From 41aa87f84709cf88c5770dfab8100608fdc1676d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 28 May 2023 13:13:43 -0400 Subject: [PATCH] Fix `_digits` attr names in order mode.. --- piker/ui/order_mode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 62e54680..2cd22610 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -302,7 +302,7 @@ class OrderMode: price = round( price, - ndigits=mkt.size_tick_digits, + ndigits=mkt.price_tick_digits, ) order = self._staged_order = Order( @@ -461,7 +461,7 @@ class OrderMode: mktinfo: MktPair = self.chart.linked.mkt level = round( line.value(), - ndigits=mktinfo.size_tick_digits, + ndigits=mktinfo.price_tick_digits, ) # updated by level change callback set in ``.new_line_from_order()`` dialog = line.dialog