fix orientation of ticker vs price top vs bottom

This commit is contained in:
Joe Lothan 2026-06-15 17:44:07 -04:00
parent 96d2af4c3f
commit e8c39012a9

View file

@ -25,14 +25,14 @@ def print_trade(p, symbol, lots, price):
else:
price_str = f"{price:.2f}"
# Symbol characters at the top (left-aligned)
# Symbol characters at the top (right-aligned)
for ch in symbol:
p.text(ch + "\n")
# Price characters at the bottom (right-aligned)
for ch in price_str:
p.text(" " * (LINE_WIDTH - 1) + ch + "\n")
# Price characters at the bottom (left-aligned)
for ch in price_str:
p.text(ch + "\n")
# Blank line separator between trades
p.text("\n")