Skip to content

quant run 日线数据延迟 — 最新交易日(T)数据缺失,但小时线数据正常 #1075

@coldcoder126

Description

@coldcoder126

描述:使用 longbridge quant run 获取 NVDA.US 日线 K 线数据时,最新交易日(2026-06-05,周五)的数据无法获取,但同一天的小时线数据正常返回。

复现步骤

日线查询,--end 设置为 2026-06-10(远超当前日期)

longbridge quant run NVDA.US --start 2026-06-01 --end 2026-06-10 \
  --format json --script '
//@version=6
indicator("OHLCV")
alert(str.format("{0}|{1}|{2}|{3}|{4}|{5}", time, open, high, low, close, volume), alert.freq_all)
'

实际结果

{
    "chart_json": "",
    "events_json": "[
    {"BarStart":{"bar_index":0,"timestamp":1780286400000,"bar_state":"History"}},
    {"Alert":{"id":null,"message":"1,780,286,400,000|215.479|224.6|215.449|224|212,850,685"}},
    "BarEnd",{"BarStart":{"bar_index":1,"timestamp":1780372800000,"bar_state":"History"}},
    {"Alert":{"id":null,"message":"1,780,372,800,000|226.916|232|221|222.561|193,362,903"}},
    "BarEnd",{"BarStart":{"bar_index":2,"timestamp":1780459200000,"bar_state":"History"}},
    {"Alert":{"id":null,"message":"1,780,459,200,000|221.462|222.561|214.26|214.5|160,907,001"}},
    "BarEnd",{"BarStart":{"bar_index":3,"timestamp":1780545600000,"bar_state":"History"}},
    {"Alert":{"id":null,"message":"1,780,545,600,000|213.9|221.6|210.97|218.66|169,022,152"}},
    "BarEnd","HistoryEnd"]",
    "report_json": "null"
}

数据只返回到 2026-06-04(周四),2026-06-05(周五)完全缺失

查询时间为北京时间 2026-06-07 10:26(美东 2026-06-06 22:26),距离 2026-06-05 美股收盘(美东 16:00)已超过 30 小时,日线数据应已可用。

环境

  • CLI 版本:longbridge 0.23.0
  • 操作系统:macOS
  • 查询时间:北京时间 2026-06-07 10:26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions