WHAT IT ANSWERS
这张表适合回答什么
- 解析证券与来源标识映射
- 为跨表查询补充分类和主数据
DATASET · ref
ref.quant_exchange_session_calendar
这是证券主数据、交易日历与跨来源映射中的“量化交易所会话日历”数据集;一行由 calendar_id、exchange、source_version、session_index 定位,主要字段包括 record_id、timezone、coverage_start、coverage_end、expected_session_count。
created_atWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
calendar_idexchangesource_versionsession_indexrecord_idRECOMMENDED JOINS
该表主要按自身业务键使用,目前没有推荐的跨表主键联接。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 5000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
calendar_id, exchange, source_version, session_index, record_idcalendar_id, exchange, source_version, session_index, record_idrelation_defaultexchange→ exchange · stringprovider→ provider · 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/ref/quant_exchange_session_calendar/rows?limit=100&exchange=NASDAQ"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('ref', 'quant_exchange_session_calendar', limit=100, filters={'exchange': 'NASDAQ'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows ref quant_exchange_session_calendar --limit 100 --filter exchange=NASDAQ{
"arguments": {
"dataset": "quant_exchange_session_calendar",
"filters": {
"exchange": "NASDAQ"
},
"limit": 100,
"namespace": "ref"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | record_id | FixedString(64) | string | no | default_order, warehouse_primary_key, contract_unique_key | Identifier for record.名称推导 |
| 2 | calendar_id | String | string | no | default_order, warehouse_primary_key, contract_unique_key | Identifier for calendar.名称推导 |
| 3 | exchange | LowCardinality(String) | string | no | filter, default_order, warehouse_primary_key, contract_unique_key | Listing or trading exchange.标准术语表 |
| 4 | timezone | String | string | no | value | Source-normalized field: timezone.名称推导 |
| 5 | coverage_start | Date | string / date | no | value | Source-normalized field: coverage start.名称推导 |
| 6 | coverage_end | Date | string / date | no | value | Source-normalized field: coverage end.名称推导 |
| 7 | expected_session_count | UInt32 | integer | no | value | Count of expected session count.名称推导 |
| 8 | session_datedate | Date | string / date | no | value | Calendar date for session date (YYYY-MM-DD).名称推导 |
| 9 | session_index | UInt32 | integer | no | default_order, warehouse_primary_key, contract_unique_key | Source-normalized field: session index.名称推导 |
| 10 | open_tsUTC_datetime | DateTime64(6, 'UTC') | string / date-time | no | value | UTC timestamp for open ts.名称推导 |
| 11 | close_tsUTC_datetime | DateTime64(6, 'UTC') | string / date-time | no | value | UTC timestamp for close ts.名称推导 |
| 12 | knowledge_available_atUTC_datetime | DateTime64(6, 'UTC') | string / date-time | no | warehouse_primary_key | UTC timestamp for knowledge available at.名称推导 |
| 13 | source_system | LowCardinality(String) | string | no | value | Source-normalized field: source system.名称推导 |
| 14 | source_version | String | string | no | default_order, warehouse_primary_key, contract_unique_key | Source-normalized field: source version.名称推导 |
| 15 | source_record_id | String | string | no | warehouse_primary_key, provenance | Provider-side identifier for the source record.标准术语表 |
| 16 | raw_payload_sha256 | FixedString(64) | string | no | value | Source-normalized field: raw payload sha256.名称推导 |
| 17 | parser_version | LowCardinality(String) | string | no | provenance | Version of the parser or normalizer that produced the row.标准术语表 |
| 18 | quality_status | LowCardinality(String) | string | no | provenance | Machine-readable data-quality classification.标准术语表 |
| 19 | snapshot_sha256 | FixedString(64) | string | no | value | Source-normalized field: snapshot sha256.名称推导 |
| 20 | content_sha256 | FixedString(64) | string | no | value | Source-normalized field: content sha256.名称推导 |
| 21 | dataset_sha256 | FixedString(64) | string | no | value | Source-normalized field: dataset sha256.名称推导 |
| 22 | import_contract_sha256 | FixedString(64) | string | no | value | Source-normalized field: import contract sha256.名称推导 |
| 23 | reviewer_key_id | String | string | no | value | Identifier for reviewer key.名称推导 |
| 24 | reviewer_key_record_sha256 | FixedString(64) | string | no | value | Source-normalized field: reviewer key record sha256.名称推导 |
| 25 | reviewed_atUTC_datetime | DateTime64(6, 'UTC') | string / date-time | no | value | UTC timestamp for reviewed at.名称推导 |
| 26 | review_signature_sha256 | FixedString(64) | string | no | value | Source-normalized field: review signature sha256.名称推导 |
| 27 | calendar_source_sha256 | FixedString(64) | string | no | value | Source-normalized field: calendar source sha256.名称推导 |
| 28 | source_manifest_sha256 | FixedString(64) | string | no | value | Source-normalized field: source manifest sha256.名称推导 |
| 29 | version | UInt64 | integer | no | warehouse_primary_key, provenance | Monotonic row version used for correction-aware reads.标准术语表 |
| 30 | created_atUTC_datetime | DateTime64(6, 'UTC') | string / date-time | no | time | UTC timestamp when the warehouse row was first created.标准术语表 |
| 31 | provider | LowCardinality(String) | string | no | filter, provenance | Upstream data provider identifier.标准术语表 |
| 32 | source_url | String | string | no | provenance | URL of the upstream evidence or record when distributable.标准术语表 |
| 33 | raw_payload_hash | String | string | no | provenance | Opaque fingerprint of the normalized source payload for provenance checks.标准术语表 |
| 34 | license_scope | LowCardinality(String) | string | no | provenance | License or redistribution scope attached to the row.标准术语表 |
| 35 | visibility_tier | LowCardinality(String) | string | no | provenance | Serving visibility tier attached to the row.标准术语表 |
| 36 | ingest_run_id | String | string | no | provenance | Identifier of the ingestion run that produced the row.标准术语表 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。