修复 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:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user