Skip to content

Commit

Permalink
Merge pull request #518 from pikers/fix_price_label_digits
Browse files Browse the repository at this point in the history
Fix price label precision as `MktPair.price_tick_digits`
  • Loading branch information
goodboy authored May 31, 2023
2 parents e51ba40 + c27da99 commit 201b0d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions piker/ui/_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,10 +1235,10 @@ def draw_curve(
# if the sticky is for our symbol
# use the tick size precision for display
name = name or pi.name
sym = self.linked.mkt
digits = None
if name == sym.key:
digits = sym.tick_size_digits
mkt: MktPair = self.linked.mkt
digits: int | None = None
if name in mkt.fqme:
digits = mkt.price_tick_digits

# anchor_at = ('top', 'left')

Expand Down

0 comments on commit 201b0d9

Please sign in to comment.