修复 OKX K 线无 since 时只拉 300 根的问题,并加入行情快捷键

- fetch_ohlcv_for_hub:无 since 时按目标根数分页拉取(OKX/Gate 单次约 300)

- hub_kline_store 全量补拉传 fetch_start_ms

- 行情区:数字键切换周期、Ctrl+空格全屏、Esc 退出全屏

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-02 14:51:37 +08:00
parent 16927444d7
commit bfffc7d984
6 changed files with 241 additions and 26 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ def resolve_chart_bars(
remote_err: Optional[str] = None
if need_fetch:
since = None
since = fetch_start_ms
if db_rows and not force_refresh and newest_ok and len(db_rows) >= need:
since = max(0, int(newest_db) - period_ms * 2)
remote = remote_fetch(