feat: configurable ticker window for market stats (1h, 4h, 1d)
- Replace hardcoded ticker_24h with ticker_stats supporting configurable window - Add -w/--window flag to `market tickers` (choices: 1h, 4h, 1d, default 1d) - Update TUI title and JSON output to include window field - Keep opportunity/pf service on 1d default - Sync tests and doc comments Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -278,7 +278,7 @@ def _render_tui(payload: Any) -> None:
|
||||
]
|
||||
)
|
||||
_print_box_table(
|
||||
"24H TICKERS",
|
||||
f"TICKERS window={payload.get('window', '1d')}",
|
||||
["Symbol", "Last Price", "Change %", "Quote Volume"],
|
||||
table_rows,
|
||||
aligns=["left", "right", "right", "right"],
|
||||
|
||||
Reference in New Issue
Block a user