Merge pull request #518 from pikers/fix_price_label_digits

Fix price label precision as `MktPair.price_tick_digits`
master
goodboy 2023-05-31 10:59:30 -04:00 committed by GitHub
commit 201b0d99c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1235,10 +1235,10 @@ class ChartPlotWidget(pg.PlotWidget):
# 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')