fix: use rolling_window_ticker for symbol-specific queries, expand window choices

- Replace removed Spot.ticker() with rolling_window_ticker for symbol-specific
ticker stats (compatible with binance-connector>=3.12.0).
- Fall back to ticker_24hr for full-market scans where rolling_window_ticker
requires symbols.
- Expand --window choices from [1h,4h,1d] to full Binance rolling window set:
1m,2m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,2d,3d,5d,7d,15d,30d.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 23:18:28 +08:00
parent 69f447f538
commit a9f6cf4c46
4 changed files with 17 additions and 7 deletions

View File

@@ -19,6 +19,12 @@
---
## What's New in 3.0.1
- **Fix ticker API compatibility** — `rolling_window_ticker` replaces the removed `ticker` method in `binance-connector>=3.12.0`.
- **Expand ticker window choices** — `market tickers --window` now supports `1m`, `2m`, `5m`, `15m`, `30m`, `1h`, `2h`, `4h`, `6h`, `8h`, `12h`, `1d`, `2d`, `3d`, `5d`, `7d`, `15d`, `30d`.
- **Smart API fallback** — full-market scan (no symbols) falls back to 24h ticker; symbol-specific queries use rolling window.
## What's New in 3.0
- **Split decision models** — portfolio (add/hold/trim/exit) and opportunity (enter/watch/skip) now use independent scoring logic.