Friends Data API独立数据服务

DATASET · market

Daybreak 个股归因视图

market.stock_leg_attribution
价格与行情

汇总每只股票的机制腿、共振强度、置信槽位、LLM judge 结论与闸门健康,解释 Daybreak 判断来源。

字段60
关键字段2
更新口径producer_schedule
时间列trade_date
单页上限10000
分页窄筛选
PIT不支持
规模view

WHAT IT ANSWERS

这张表适合回答什么

  • 解释某日某票为何被判断
  • 比较机制腿贡献
  • 检查 judge 与 conviction gate 状态

GRAIN & TIME

一行代表什么

业务粒度
每行代表“Daybreak 个股归因视图”的一条记录;逻辑粒度由 trade_date × instrument_id 共同确定。
时间口径
以 trade_date 为主要查询时间轴;除下方限制特别说明外,时间戳按 UTC、日期按来源市场日历解释。
更新节奏
由对应生产任务或事件触发更新,不承诺固定日历频率;查询前先检查最新时间。

KEY FIELDS

先看这些字段

trade_date
对应市场日历中的交易日。
instrument_id
WarrenHub 统一证券标识;跨证券数据集优先用它联接。

RECOMMENDED JOINS

怎样和其他表关联

ref.instrumenton instrument_id

用 instrument_id 补充证券代码、名称、市场、交易所和资产类型。

ref.calendaron market + trade_date(有 market 时)

需要计算交易日偏移时联接交易日历;无 market 字段时先确定适用市场。

HOW TO QUERY SAFELY

查询方法与已知限制

先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 10000 行,该表不提供稳定 cursor,结果过大时必须缩小标的、日期或其他筛选。

MACHINE CONTRACT

筛选、排序与分页

UNVERSIONED
默认排序
trade_date, instrument_id
唯一键
—
读取模式
relation_default
最大时间窗
未单独限制

可用 filters

agent_verdict→ agent_verdict · string
call_id→ call_id · string
cap_bucket→ cap_bucket · string
claude_verdict→ claude_verdict · string
code→ code · string
conviction_suppressed→ conviction_suppressed · integer
data_stale→ data_stale · integer
gate_passed→ gate_passed · integer
gated→ gated · integer
instrument_id→ instrument_id · integer
sector→ sector · string

POINT IN TIME

可复现读取

NOT AVAILABLE

该资产没有 PIT 契约。普通 rows 端点仍按当前公开读模式返回数据;不要把它表述成历史时点快照。

COPY-READY CALLS

怎么调用

同一数据集可用 HTTP、Python SDK、CLI 或 MCP;Key 始终只通过环境变量/Bearer Header 传递。

READ ONLY
HTTP
curl --fail-with-body -H "Authorization: Bearer $FRIENDS_DATA_API_KEY" "https://api.alphahubs.uk/api/v1/data/datasets/market/stock_leg_attribution/rows?limit=100&code=AAPL&start=2026-08-01&end=2026-08-01"

FIELD DICTIONARY

60 个返回字段

descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。

#字段ClickHouse 类型JSON可空角色说明
1instrument_idUInt64integernofilter, default_orderWarrenHub canonical instrument identifier; use it for cross-dataset joins.标准术语表
2codeStringstringnofilterSource-normalized security or contract code.标准术语表
3trade_datedateDatestring / datenotime, default_orderTrading-session date in the dataset's market calendar.标准术语表
4adv_usdUSDFloat64numbernovalueUS-dollar value for adv usd.名称推导
5cap_bucketLowCardinality(String)stringnofilterSource-normalized field: cap bucket.名称推导
6sectorLowCardinality(String)stringnofilterSource-normalized field: sector.名称推导
7industryLowCardinality(String)stringnovalueSource-normalized field: industry.名称推导
8industry_rsFloat64numbernovalueSource-normalized field: industry rs.名称推导
9industry_rankUInt16integernovalueSource-normalized field: industry rank.名称推导
10industry_nUInt16integernovalueSource-normalized field: industry n.名称推导
11is_industry_leaderUInt8integernovalueWhether industry leader applies to the row.名称推导
12industry_ignitedUInt8integernovalueSource-normalized field: industry ignited.名称推导
13resonance_scoreFloat64numbernovalueSource-normalized field: resonance score.名称推导
14intensity_scoreFloat64numbernovalueSource-normalized field: intensity score.名称推导
15conviction_concentrationFloat64numbernovalueSource-normalized field: conviction concentration.名称推导
16conviction_slotsStringstringnovalueSource-normalized field: conviction slots.名称推导
17residualizer_primary_basisLowCardinality(String)stringnovalueSource-normalized field: residualizer primary basis.名称推导
18residualizer_shadow_basisLowCardinality(String)stringnovalueSource-normalized field: residualizer shadow basis.名称推导
19residualizer_rollout_modeLowCardinality(String)stringnovalueSource-normalized field: residualizer rollout mode.名称推导
20residualizer_shadow_readyUInt8integernovalueSource-normalized field: residualizer shadow ready.名称推导
21residualizer_provenance_jsonStringstringnovalueSource-normalized field: residualizer provenance json.名称推导
22score_residualizedNullable(Float64)numberyesvalueSource-normalized field: score residualized.名称推导
23rank_residualizedNullable(UInt32)integeryesvalueSource-normalized field: rank residualized.名称推导
24score_delta_residualized_minus_frozenNullable(Float64)numberyesvalueSource-normalized field: score delta residualized minus frozen.名称推导
25rank_delta_residualized_minus_frozenNullable(Int32)integeryesvalueSource-normalized field: rank delta residualized minus frozen.名称推导
26conviction_long_v2Nullable(Float64)numberyesvalueSource-normalized field: conviction long v2.名称推导
27conviction_short_v2Nullable(Float64)numberyesvalueSource-normalized field: conviction short v2.名称推导
28n_slots_long_v2UInt16integernovalueCount of slots long v2.名称推导
29n_slots_short_v2UInt16integernovalueCount of slots short v2.名称推导
30conviction_direction_v2LowCardinality(String)stringnovalueSource-normalized field: conviction direction v2.名称推导
31gatedUInt8integernofilterSource-normalized field: gated.名称推导
32gate_reasonLowCardinality(String)stringnovalueSource-normalized field: gate reason.名称推导
33foresight_availableUInt8integernovalueSource-normalized field: foresight available.名称推导
34legs_jsonStringstringnovalueSource-normalized field: legs json.名称推导
35lit_legsArray(String)arraynovalueSource-normalized field: lit legs.名称推导
36agent_verdictLowCardinality(String)stringnofilterSource-normalized field: agent verdict.名称推导
37agent_confidenceFloat64numbernovalueSource-normalized field: agent confidence.名称推导
38agent_articleStringstringnovalueSource-normalized field: agent article.名称推导
39claude_verdictStringstringnofilterSource-normalized field: claude verdict.名称推导
40claude_directionStringstringnovalueSource-normalized field: claude direction.名称推导
41claude_confidenceFloat64numbernovalueSource-normalized field: claude confidence.名称推导
42claude_entry_planStringstringnovalueSource-normalized field: claude entry plan.名称推导
43claude_articleStringstringnovalueSource-normalized field: claude article.名称推导
44claude_judged_atUTC_datetimeDateTime64(3, 'UTC')string / date-timenovalueUTC timestamp for claude judged at.名称推导
45claude_prompt_verStringstringnovalueSource-normalized field: claude prompt ver.名称推导
46call_idStringstringnofilterIdentifier for call.名称推导
47served_basisStringstringnovalueSource-normalized field: served basis.名称推导
48gate_passedUInt8integernofilterSource-normalized field: gate passed.名称推导
49conviction_suppressedUInt8integernofilterSource-normalized field: conviction suppressed.名称推导
50data_staleUInt8integernofilterSource-normalized field: data stale.名称推导
51stale_hoursNullable(Float64)numberyesvalueSource-normalized field: stale hours.名称推导
52target_priceFloat64numbernovaluePrice value for target price.名称推导
53stop_priceFloat64numbernovaluePrice value for stop price.名称推导
54horizon_daysUInt16integernovalueSource-normalized field: horizon days.名称推导
55vehicleStringstringnovalueSource-normalized field: vehicle.名称推导
56date_window_startDatestring / datenovalueSource-normalized field: date window start.名称推导
57date_window_endDatestring / datenovalueSource-normalized field: date window end.名称推导
58invalidation_conditionStringstringnovalueSource-normalized field: invalidation condition.名称推导
59judge_evidence_jsonStringstringnovalueSource-normalized field: judge evidence json.名称推导
60computed_atUTC_datetimeDateTime64(3, 'UTC')string / date-timenovalueUTC timestamp for computed at.名称推导
字典口径

结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。