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:
@@ -26,7 +26,7 @@ class FakeSpotClient:
|
||||
return list(prices.values())
|
||||
return [prices[symbol] for symbol in symbols]
|
||||
|
||||
def ticker_24h(self, symbols=None):
|
||||
def ticker_stats(self, symbols=None, *, window="1d"):
|
||||
rows = [
|
||||
{
|
||||
"symbol": "BTCUSDT",
|
||||
|
||||
Reference in New Issue
Block a user