WHAT IT ANSWERS
这张表适合回答什么
- 计算连续历史收益
- 构建回测价格序列
- 核对复权来源和调整因子
DATASET · market
market.ohlcv_1d_adjusted
提供经拆股调整的规范日线,并保留公司行为来源和服务端折叠口径,适合连续收益研究。
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 进一步缩小范围;单页最多 100000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
trade_date, instrument_idinstrument_id, trade_daterelation_defaultadjustment_coverage_flag→ adjustment_coverage_flag · stringinstrument_id→ instrument_id · integermarket→ market · 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/ohlcv_1d_adjusted/rows?limit=100&instrument_id=1"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('market', 'ohlcv_1d_adjusted', limit=100, filters={'instrument_id': 1})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows market ohlcv_1d_adjusted --limit 100 --filter instrument_id=1{
"arguments": {
"dataset": "ohlcv_1d_adjusted",
"filters": {
"instrument_id": 1
},
"limit": 100,
"namespace": "market"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | instrument_id | UInt64 | integer | no | filter, default_order, contract_unique_key | WarrenHub canonical instrument identifier; use it for cross-dataset joins.标准术语表 |
| 2 | market | String | string | no | filter | Canonical market or country-market code.标准术语表 |
| 3 | trade_datedate | Date | string / date | no | time, default_order, contract_unique_key | Trading-session date in the dataset's market calendar.标准术语表 |
| 4 | open | Float64 | number | no | value | Opening price for the represented interval.标准术语表 |
| 5 | high | Float64 | number | no | value | Highest price for the represented interval.标准术语表 |
| 6 | low | Float64 | number | no | value | Lowest price for the represented interval.标准术语表 |
| 7 | raw_close | Float64 | number | no | provenance | Source-normalized field: raw close.名称推导 |
| 8 | adjusted_close | Nullable(Float64) | number | yes | provenance | Source-normalized field: adjusted close.名称推导 |
| 9 | volume | UInt64 | integer | no | value | Traded volume for the represented interval.标准术语表 |
| 10 | vwap | Float64 | number | no | value | Volume-weighted average price for the represented interval.标准术语表 |
| 11 | n_trades | UInt64 | integer | no | value | Count of trades.名称推导 |
| 12 | price_available_atUTC_datetime | DateTime64(9, 'UTC') | string / date-time | no | provenance | UTC timestamp for price available at.名称推导 |
| 13 | split_adjust_factor | Nullable(Float64) | number | yes | provenance | Source-normalized field: split adjust factor.名称推导 |
| 14 | adjustment_source | String | string | no | provenance | Source-normalized field: adjustment source.名称推导 |
| 15 | price_source | String | string | no | provenance | Source-normalized field: price source.名称推导 |
| 16 | split_vintage_min_ex_datedate | Nullable(Date) | string / date | yes | provenance | Calendar date for split vintage min ex date (YYYY-MM-DD).名称推导 |
| 17 | adjustment_coverage_flag | String | string | no | filter, provenance | Source-normalized field: adjustment coverage flag.名称推导 |
| 18 | adjustment_basis | String | string | no | provenance | Source-normalized field: adjustment basis.名称推导 |
| 19 | dividend_adjustment_policy | String | string | no | provenance | Source-normalized field: dividend adjustment policy.名称推导 |
| 20 | source_authority_policy | String | string | no | provenance | Source-normalized field: source authority policy.名称推导 |
| 21 | collapse_owner | String | string | no | provenance | Source-normalized field: collapse owner.名称推导 |
| 22 | contract_version | String | string | no | provenance | Source-normalized field: contract version.名称推导 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。