WHAT IT ANSWERS
这张表适合回答什么
- 筛选隔夜高成交异动股
- 比较跳空方向和幅度
- 联接延续结果做策略评估
DATASET · market
market.overnight_equity_scan
按场所、交易日和证券保存延长交易时段 OHLC、跳空、成交额及双向候选标记。
session_dateWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
venuesession_datesymbolRECOMMENDED JOINS
ref.instrumenton instrument_id用 instrument_id 补充证券代码、名称、市场、交易所和资产类型。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 5000 行,该表不提供稳定 cursor,结果过大时必须缩小标的、日期或其他筛选。
MACHINE CONTRACT
session_date, venue, symbol—canonical_final_activecandidate_side→ candidate_side · stringcap_bucket→ cap_bucket · stringinstrument_id→ instrument_id · integeris_candidate→ is_candidate · integersymbol→ symbol · stringvenue→ venue · 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/overnight_equity_scan/rows?limit=100&instrument_id=1&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', 'overnight_equity_scan', limit=100, start='2026-08-01', end='2026-08-01', filters={'instrument_id': 1})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows market overnight_equity_scan --limit 100 --start 2026-08-01 --end 2026-08-01 --filter instrument_id=1{
"arguments": {
"dataset": "overnight_equity_scan",
"end": "2026-08-01",
"filters": {
"instrument_id": 1
},
"limit": 100,
"namespace": "market",
"start": "2026-08-01"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | session_datedate | Date | string / date | no | time, default_order, warehouse_primary_key | Calendar date for session date (YYYY-MM-DD).名称推导 |
| 2 | symbol | LowCardinality(String) | string | no | filter, default_order, warehouse_primary_key | Display or trading symbol for the instrument.标准术语表 |
| 3 | instrument_id | UInt64 | integer | no | filter | WarrenHub canonical instrument identifier; use it for cross-dataset joins.标准术语表 |
| 4 | asset_type | LowCardinality(String) | string | no | value | Instrument asset-class classification.标准术语表 |
| 5 | cap_bucket | LowCardinality(String) | string | no | filter | Source-normalized field: cap bucket.名称推导 |
| 6 | prev_close | Float64 | number | no | value | Source-normalized field: prev close.名称推导 |
| 7 | on_open | Float64 | number | no | value | Source-normalized field: on open.名称推导 |
| 8 | on_close | Float64 | number | no | value | Source-normalized field: on close.名称推导 |
| 9 | on_high | Float64 | number | no | value | Source-normalized field: on high.名称推导 |
| 10 | on_low | Float64 | number | no | value | Source-normalized field: on low.名称推导 |
| 11 | on_ret | Float64 | number | no | value | Source-normalized field: on ret.名称推导 |
| 12 | gap | Float64 | number | no | value | Source-normalized field: gap.名称推导 |
| 13 | night_range | Float64 | number | no | value | Source-normalized field: night range.名称推导 |
| 14 | dollar_vol | Float64 | number | no | value | Source-normalized field: dollar vol.名称推导 |
| 15 | n_bars | UInt32 | integer | no | value | Count of bars.名称推导 |
| 16 | has_gap | UInt8 | integer | no | value | Whether gap applies to the row.名称推导 |
| 17 | is_candidate | UInt8 | integer | no | filter | Whether candidate applies to the row.名称推导 |
| 18 | candidate_rank | Int32 | integer | no | value | Source-normalized field: candidate rank.名称推导 |
| 19 | candidate_side | LowCardinality(String) | string | no | filter | Source-normalized field: candidate side.名称推导 |
| 20 | venue | LowCardinality(String) | string | no | filter, default_order, warehouse_primary_key | Source-normalized field: venue.名称推导 |
| 21 | version | UInt64 | integer | no | provenance | Monotonic row version used for correction-aware reads.标准术语表 |
| 22 | is_deleted | UInt8 | integer | no | value | Soft-delete marker; public serving excludes current tombstones.标准术语表 |
| 23 | ingested_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | provenance | UTC timestamp when the source record entered the warehouse.标准术语表 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。