Skip to content

fix(tui): standardize numeric formatting and add volume unit toggle - #1

Merged
llcro merged 2 commits into
mainfrom
fix/volume-unit
Apr 21, 2026
Merged

fix(tui): standardize numeric formatting and add volume unit toggle#1
llcro merged 2 commits into
mainfrom
fix/volume-unit

Conversation

@troycdc

@troycdc troycdc commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator
  • Move price/volume formatting helpers to format.rs and reuse in Market/Watchlist.
  • Apply format_price to price/high/low and format_compact to volumes.
  • Add VolumeUnit state and global 'v' toggle (USD / Notional); update status bar and help.
  • Preserve market sort order when toggling display unit.
  • Tests: cdcx-tui tests pass locally.

@llcro llcro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@llcro
llcro merged commit 27f32e3 into main Apr 21, 2026
8 checks passed
@llcro
llcro deleted the fix/volume-unit branch April 21, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants