WHAT IT ANSWERS
这张表适合回答什么
- 解释某日某票为何被判断
- 比较机制腿贡献
- 检查 judge 与 conviction gate 状态
DATASET · market
market.stock_leg_attribution
汇总每只股票的机制腿、共振强度、置信槽位、LLM judge 结论与闸门健康,解释 Daybreak 判断来源。
trade_dateWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
trade_dateinstrument_idRECOMMENDED 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
trade_date, instrument_id—relation_defaultagent_verdict→ agent_verdict · stringcall_id→ call_id · stringcap_bucket→ cap_bucket · stringclaude_verdict→ claude_verdict · stringcode→ code · stringconviction_suppressed→ conviction_suppressed · integerdata_stale→ data_stale · integergate_passed→ gate_passed · integergated→ gated · integerinstrument_id→ instrument_id · integersector→ sector · stringPOINT IN TIME
该资产没有 PIT 契约。普通 rows 端点仍按当前公开读模式返回数据;不要把它表述成历史时点快照。
COPY-READY CALLS
同一数据集可用 HTTP、Python SDK、CLI 或 MCP;Key 始终只通过环境变量/Bearer Header 传递。
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"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('market', 'stock_leg_attribution', limit=100, start='2026-08-01', end='2026-08-01', filters={'code': 'AAPL'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows market stock_leg_attribution --limit 100 --start 2026-08-01 --end 2026-08-01 --filter code=AAPL{
"arguments": {
"dataset": "stock_leg_attribution",
"end": "2026-08-01",
"filters": {
"code": "AAPL"
},
"limit": 100,
"namespace": "market",
"start": "2026-08-01"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | instrument_id | UInt64 | integer | no | filter, default_order | WarrenHub canonical instrument identifier; use it for cross-dataset joins.标准术语表 |
| 2 | code | String | string | no | filter | Source-normalized security or contract code.标准术语表 |
| 3 | trade_datedate | Date | string / date | no | time, default_order | Trading-session date in the dataset's market calendar.标准术语表 |
| 4 | adv_usdUSD | Float64 | number | no | value | US-dollar value for adv usd.名称推导 |
| 5 | cap_bucket | LowCardinality(String) | string | no | filter | Source-normalized field: cap bucket.名称推导 |
| 6 | sector | LowCardinality(String) | string | no | filter | Source-normalized field: sector.名称推导 |
| 7 | industry | LowCardinality(String) | string | no | value | Source-normalized field: industry.名称推导 |
| 8 | industry_rs | Float64 | number | no | value | Source-normalized field: industry rs.名称推导 |
| 9 | industry_rank | UInt16 | integer | no | value | Source-normalized field: industry rank.名称推导 |
| 10 | industry_n | UInt16 | integer | no | value | Source-normalized field: industry n.名称推导 |
| 11 | is_industry_leader | UInt8 | integer | no | value | Whether industry leader applies to the row.名称推导 |
| 12 | industry_ignited | UInt8 | integer | no | value | Source-normalized field: industry ignited.名称推导 |
| 13 | resonance_score | Float64 | number | no | value | Source-normalized field: resonance score.名称推导 |
| 14 | intensity_score | Float64 | number | no | value | Source-normalized field: intensity score.名称推导 |
| 15 | conviction_concentration | Float64 | number | no | value | Source-normalized field: conviction concentration.名称推导 |
| 16 | conviction_slots | String | string | no | value | Source-normalized field: conviction slots.名称推导 |
| 17 | residualizer_primary_basis | LowCardinality(String) | string | no | value | Source-normalized field: residualizer primary basis.名称推导 |
| 18 | residualizer_shadow_basis | LowCardinality(String) | string | no | value | Source-normalized field: residualizer shadow basis.名称推导 |
| 19 | residualizer_rollout_mode | LowCardinality(String) | string | no | value | Source-normalized field: residualizer rollout mode.名称推导 |
| 20 | residualizer_shadow_ready | UInt8 | integer | no | value | Source-normalized field: residualizer shadow ready.名称推导 |
| 21 | residualizer_provenance_json | String | string | no | value | Source-normalized field: residualizer provenance json.名称推导 |
| 22 | score_residualized | Nullable(Float64) | number | yes | value | Source-normalized field: score residualized.名称推导 |
| 23 | rank_residualized | Nullable(UInt32) | integer | yes | value | Source-normalized field: rank residualized.名称推导 |
| 24 | score_delta_residualized_minus_frozen | Nullable(Float64) | number | yes | value | Source-normalized field: score delta residualized minus frozen.名称推导 |
| 25 | rank_delta_residualized_minus_frozen | Nullable(Int32) | integer | yes | value | Source-normalized field: rank delta residualized minus frozen.名称推导 |
| 26 | conviction_long_v2 | Nullable(Float64) | number | yes | value | Source-normalized field: conviction long v2.名称推导 |
| 27 | conviction_short_v2 | Nullable(Float64) | number | yes | value | Source-normalized field: conviction short v2.名称推导 |
| 28 | n_slots_long_v2 | UInt16 | integer | no | value | Count of slots long v2.名称推导 |
| 29 | n_slots_short_v2 | UInt16 | integer | no | value | Count of slots short v2.名称推导 |
| 30 | conviction_direction_v2 | LowCardinality(String) | string | no | value | Source-normalized field: conviction direction v2.名称推导 |
| 31 | gated | UInt8 | integer | no | filter | Source-normalized field: gated.名称推导 |
| 32 | gate_reason | LowCardinality(String) | string | no | value | Source-normalized field: gate reason.名称推导 |
| 33 | foresight_available | UInt8 | integer | no | value | Source-normalized field: foresight available.名称推导 |
| 34 | legs_json | String | string | no | value | Source-normalized field: legs json.名称推导 |
| 35 | lit_legs | Array(String) | array | no | value | Source-normalized field: lit legs.名称推导 |
| 36 | agent_verdict | LowCardinality(String) | string | no | filter | Source-normalized field: agent verdict.名称推导 |
| 37 | agent_confidence | Float64 | number | no | value | Source-normalized field: agent confidence.名称推导 |
| 38 | agent_article | String | string | no | value | Source-normalized field: agent article.名称推导 |
| 39 | claude_verdict | String | string | no | filter | Source-normalized field: claude verdict.名称推导 |
| 40 | claude_direction | String | string | no | value | Source-normalized field: claude direction.名称推导 |
| 41 | claude_confidence | Float64 | number | no | value | Source-normalized field: claude confidence.名称推导 |
| 42 | claude_entry_plan | String | string | no | value | Source-normalized field: claude entry plan.名称推导 |
| 43 | claude_article | String | string | no | value | Source-normalized field: claude article.名称推导 |
| 44 | claude_judged_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | value | UTC timestamp for claude judged at.名称推导 |
| 45 | claude_prompt_ver | String | string | no | value | Source-normalized field: claude prompt ver.名称推导 |
| 46 | call_id | String | string | no | filter | Identifier for call.名称推导 |
| 47 | served_basis | String | string | no | value | Source-normalized field: served basis.名称推导 |
| 48 | gate_passed | UInt8 | integer | no | filter | Source-normalized field: gate passed.名称推导 |
| 49 | conviction_suppressed | UInt8 | integer | no | filter | Source-normalized field: conviction suppressed.名称推导 |
| 50 | data_stale | UInt8 | integer | no | filter | Source-normalized field: data stale.名称推导 |
| 51 | stale_hours | Nullable(Float64) | number | yes | value | Source-normalized field: stale hours.名称推导 |
| 52 | target_price | Float64 | number | no | value | Price value for target price.名称推导 |
| 53 | stop_price | Float64 | number | no | value | Price value for stop price.名称推导 |
| 54 | horizon_days | UInt16 | integer | no | value | Source-normalized field: horizon days.名称推导 |
| 55 | vehicle | String | string | no | value | Source-normalized field: vehicle.名称推导 |
| 56 | date_window_start | Date | string / date | no | value | Source-normalized field: date window start.名称推导 |
| 57 | date_window_end | Date | string / date | no | value | Source-normalized field: date window end.名称推导 |
| 58 | invalidation_condition | String | string | no | value | Source-normalized field: invalidation condition.名称推导 |
| 59 | judge_evidence_json | String | string | no | value | Source-normalized field: judge evidence json.名称推导 |
| 60 | computed_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | value | UTC timestamp for computed at.名称推导 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。