Fix price label precision as `MktPair.price_tick_digits`
Was only really borked for higher-precision but lower priced assets (like TLOS or peeneez) which have a `MktPair.price_tick_digits >= 2`. The issue was using the wrong attr, the `size_tick_digits`..master
parent
e51ba404fc
commit
c27da99e12
|
@ -1235,10 +1235,10 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
# if the sticky is for our symbol
|
# if the sticky is for our symbol
|
||||||
# use the tick size precision for display
|
# use the tick size precision for display
|
||||||
name = name or pi.name
|
name = name or pi.name
|
||||||
sym = self.linked.mkt
|
mkt: MktPair = self.linked.mkt
|
||||||
digits = None
|
digits: int | None = None
|
||||||
if name == sym.key:
|
if name in mkt.fqme:
|
||||||
digits = sym.tick_size_digits
|
digits = mkt.price_tick_digits
|
||||||
|
|
||||||
# anchor_at = ('top', 'left')
|
# anchor_at = ('top', 'left')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue