HDF / SDK Dashboard
等待数据 paper
HDF_SDK_V1

海大富策略运行看板

运行上下文、候选、持仓、交易信号与执行反馈

数据截至 -- 等待运行上下文
上下文
候选
交易
总资产
--
--
累计收益
--
--
实例持仓
--
--
本次运行
--
--

收益曲线

账户每日权益与持仓区间
区间收益--
最大回撤--
数据点--
账户累计收益持仓区间

当前持仓

来自 context.inputs.positions,行情来自 market_quotes
标的持仓可用成本最新价市值浮动盈亏行情时间

当日所有选股

strategy.candidates.generated · 当日批次汇总并按 symbol 去重
-- 0 只
排名标的主要板块评分标签指标入选时间

执行链路

最新交易信号的权威反馈

策略事件

SDK v1 事件时间线
0 events

数据契约

页面输入与 SDK 字段对照
RunContext 与 RunInputs
context.trading_date
context.mode                         # backtest / paper / live
context.command.key
context.parameters
context.inputs.positions
context.inputs.account_positions
context.inputs.market_quotes
context.inputs.execution_feedback
context.inputs.data_as_of
候选事件
emitter.emit("strategy.candidates.generated", {
  "universe": "cn_a_share",
  "candidates": [{
    "symbol": "600000.SH",
    "name": "浦发银行",
    "rank": 1,
    "score": 82.5,
    "labels": ["top1"],
    "attributes": {
      "primary_sector": "银行",
      "momentum": 12.3,
      "liquidity": 98.1
    }
  }],
  "summary": "筛选摘要"
})
交易信号
TradingSignal(
  signal_id=stable_signal_id,
  decision_id=decision_id,
  symbol="600000.SH",
  action="buy",
  intent=TargetWeightIntent(0.25),
  reference_price=10.50,
  valid_until="2026-07-16T14:57:00+08:00",
  reason_code="momentum_breakout",
  reason_text="价格和成交量同时突破策略阈值",
  confidence=0.82,
  constraints=OrderConstraints(
    limit_price=10.60,
    max_slippage_bps=20,
    time_in_force="day"
  )
)
自定义页面更新
pages = HttpStrategyPages.from_context(context)
pages.upsert(
  "hdf-sdk-dashboard",
  name="海大富策略运行看板",
  description="候选、持仓、信号和执行反馈",
  html=render_dashboard(context),
)