Fix `_digits` attr names in order mode..

master
Tyler Goodlet 2023-05-28 13:13:43 -04:00
parent d6331ce9e1
commit 41aa87f847
1 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ class OrderMode:
price = round( price = round(
price, price,
ndigits=mkt.size_tick_digits, ndigits=mkt.price_tick_digits,
) )
order = self._staged_order = Order( order = self._staged_order = Order(
@ -461,7 +461,7 @@ class OrderMode:
mktinfo: MktPair = self.chart.linked.mkt mktinfo: MktPair = self.chart.linked.mkt
level = round( level = round(
line.value(), line.value(),
ndigits=mktinfo.size_tick_digits, ndigits=mktinfo.price_tick_digits,
) )
# updated by level change callback set in ``.new_line_from_order()`` # updated by level change callback set in ``.new_line_from_order()``
dialog = line.dialog dialog = line.dialog