diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 914b7bc6..8fdf890d 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -115,12 +115,13 @@ class OrderMode: ) -> LevelLine: + level = order.price line = order_line( self.chart, # TODO: convert these values into human-readable form # (i.e. with k, m, M, B) type embedded suffixes - level=order.price, + level=level, action=order.action, size=order.size, @@ -152,6 +153,8 @@ class OrderMode: line._on_level_change = update_order_price + line.set_level(level) + return line def stage_order(