Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
workspace_id: string
experiment_id: string
title: string
symbol: string
formula_desc: string
top_n: int64
timeframes: list<item: string>
  child 0, item: string
event_window: struct<pre_bars: int64, post_bars: int64, forward_horizons: list<item: int64>>
  child 0, pre_bars: int64
  child 1, post_bars: int64
  child 2, forward_horizons: list<item: int64>
      child 0, item: int64
regime_segmentation: list<item: struct<label: string, phase: string, start_utc: timestamp[s], end_utc: timestamp[s]>>
  child 0, item: struct<label: string, phase: string, start_utc: timestamp[s], end_utc: timestamp[s]>
      child 0, label: string
      child 1, phase: string
      child 2, start_utc: timestamp[s]
      child 3, end_utc: timestamp[s]
snapshot: struct<db_now_utc: string, latest_updated_at_utc: string, snapshot_lag_hours: double>
  child 0, db_now_utc: string
  child 1, latest_updated_at_utc: string
  child 2, snapshot_lag_hours: double
top1_summary: list<item: struct<周期: string, Top100数量: int64, 第1名时间(UTC): string, 第1名振幅%: d (... 49 chars omitted)
  child 0, item: struct<周期: string, Top100数量: int64, 第1名时间(UTC): string, 第1名振幅%: double, Top1 (... 37 chars omitted)
      child 0, 周期: string
      child 1, Top100数量: int64
      child 2, 第1名时间(UTC): string
      child 3, 第1名振幅%: double
      child 4, Top100门槛%: double
      child 5, CSV文件: string
artifacts: struct<html: string, viewer_bundle: string, viewer_shards: struct<1m: string, 5m: string, 15m: strin (... 25655 chars omitted)
  chil
...
workspace: string
  child 1, csv: string
  child 2, html: string
  child 3, dataset: string
verification_commands: list<item: string>
  child 0, item: string
record_counts: struct<top100_rows_total: int64, event_windows_rows: int64, forward_returns_rows: int64>
  child 0, top100_rows_total: int64
  child 1, event_windows_rows: int64
  child 2, forward_returns_rows: int64
visualizations: list<item: string>
  child 0, item: string
contents: struct<top100_csv_count: int64, stats_csv_count: int64, html_dashboard_count: int64, html_manifest_c (... 185 chars omitted)
  child 0, top100_csv_count: int64
  child 1, stats_csv_count: int64
  child 2, html_dashboard_count: int64
  child 3, html_manifest_count: int64
  child 4, viewer_bundle_count: int64
  child 5, viewer_shard_count: int64
  child 6, viewer_event_detail_count: int64
  child 7, space_site_count: int64
  child 8, release_file_count: int64
  child 9, research_contract_files: int64
dataset_id: string
notes: list<item: string>
  child 0, item: string
dataset_repo_id: string
metric: struct<name: string, formula: string, unit: string>
  child 0, name: string
  child 1, formula: string
  child 2, unit: string
generated_at_utc: string
release_artifacts: struct<repo_layout: string, release_notes: string, rollback: string, space_index: string, space_work (... 14 chars omitted)
  child 0, repo_layout: string
  child 1, release_notes: string
  child 2, rollback: string
  child 3, space_index: string
  child 4, space_workspace: string
to
{'dataset_id': Value('string'), 'title': Value('string'), 'generated_at_utc': Value('string'), 'release_version': Value('string'), 'workspace_id': Value('string'), 'experiment_id': Value('string'), 'symbol': Value('string'), 'dataset_repo_id': Value('string'), 'space_repo_id': Value('string'), 'timeframes': List(Value('string')), 'metric': {'name': Value('string'), 'formula': Value('string'), 'unit': Value('string')}, 'snapshot': {'db_now_utc': Value('string'), 'latest_updated_at_utc': Value('string'), 'snapshot_lag_hours': Value('float64')}, 'event_window': {'pre_bars': Value('int64'), 'post_bars': Value('int64'), 'forward_horizons': List(Value('int64'))}, 'contents': {'top100_csv_count': Value('int64'), 'stats_csv_count': Value('int64'), 'html_dashboard_count': Value('int64'), 'html_manifest_count': Value('int64'), 'viewer_bundle_count': Value('int64'), 'viewer_shard_count': Value('int64'), 'viewer_event_detail_count': Value('int64'), 'space_site_count': Value('int64'), 'release_file_count': Value('int64'), 'research_contract_files': Value('int64')}, 'record_counts': {'top100_rows_total': Value('int64'), 'event_windows_rows': Value('int64'), 'forward_returns_rows': Value('int64')}, 'source_paths': {'workspace': Value('string'), 'csv': Value('string'), 'html': Value('string'), 'dataset': Value('string')}, 'release_artifacts': {'repo_layout': Value('string'), 'release_notes': Value('string'), 'rollback': Value('string'), 'space_index': Value('string'), 'space_workspace': Value('string')}, 'viewer_contract': {'bundle_file': Value('string'), 'shard_pattern': Value('string'), 'detail_pattern': Value('string'), 'state_key': Value('string'), 'direction_tabs': List(Value('string'))}, 'verification_commands': List(Value('string')), 'visualizations': List(Value('string')), 'notes': List(Value('string'))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2227, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              workspace_id: string
              experiment_id: string
              title: string
              symbol: string
              formula_desc: string
              top_n: int64
              timeframes: list<item: string>
                child 0, item: string
              event_window: struct<pre_bars: int64, post_bars: int64, forward_horizons: list<item: int64>>
                child 0, pre_bars: int64
                child 1, post_bars: int64
                child 2, forward_horizons: list<item: int64>
                    child 0, item: int64
              regime_segmentation: list<item: struct<label: string, phase: string, start_utc: timestamp[s], end_utc: timestamp[s]>>
                child 0, item: struct<label: string, phase: string, start_utc: timestamp[s], end_utc: timestamp[s]>
                    child 0, label: string
                    child 1, phase: string
                    child 2, start_utc: timestamp[s]
                    child 3, end_utc: timestamp[s]
              snapshot: struct<db_now_utc: string, latest_updated_at_utc: string, snapshot_lag_hours: double>
                child 0, db_now_utc: string
                child 1, latest_updated_at_utc: string
                child 2, snapshot_lag_hours: double
              top1_summary: list<item: struct<周期: string, Top100数量: int64, 第1名时间(UTC): string, 第1名振幅%: d (... 49 chars omitted)
                child 0, item: struct<周期: string, Top100数量: int64, 第1名时间(UTC): string, 第1名振幅%: double, Top1 (... 37 chars omitted)
                    child 0, 周期: string
                    child 1, Top100数量: int64
                    child 2, 第1名时间(UTC): string
                    child 3, 第1名振幅%: double
                    child 4, Top100门槛%: double
                    child 5, CSV文件: string
              artifacts: struct<html: string, viewer_bundle: string, viewer_shards: struct<1m: string, 5m: string, 15m: strin (... 25655 chars omitted)
                chil
              ...
              workspace: string
                child 1, csv: string
                child 2, html: string
                child 3, dataset: string
              verification_commands: list<item: string>
                child 0, item: string
              record_counts: struct<top100_rows_total: int64, event_windows_rows: int64, forward_returns_rows: int64>
                child 0, top100_rows_total: int64
                child 1, event_windows_rows: int64
                child 2, forward_returns_rows: int64
              visualizations: list<item: string>
                child 0, item: string
              contents: struct<top100_csv_count: int64, stats_csv_count: int64, html_dashboard_count: int64, html_manifest_c (... 185 chars omitted)
                child 0, top100_csv_count: int64
                child 1, stats_csv_count: int64
                child 2, html_dashboard_count: int64
                child 3, html_manifest_count: int64
                child 4, viewer_bundle_count: int64
                child 5, viewer_shard_count: int64
                child 6, viewer_event_detail_count: int64
                child 7, space_site_count: int64
                child 8, release_file_count: int64
                child 9, research_contract_files: int64
              dataset_id: string
              notes: list<item: string>
                child 0, item: string
              dataset_repo_id: string
              metric: struct<name: string, formula: string, unit: string>
                child 0, name: string
                child 1, formula: string
                child 2, unit: string
              generated_at_utc: string
              release_artifacts: struct<repo_layout: string, release_notes: string, rollback: string, space_index: string, space_work (... 14 chars omitted)
                child 0, repo_layout: string
                child 1, release_notes: string
                child 2, rollback: string
                child 3, space_index: string
                child 4, space_workspace: string
              to
              {'dataset_id': Value('string'), 'title': Value('string'), 'generated_at_utc': Value('string'), 'release_version': Value('string'), 'workspace_id': Value('string'), 'experiment_id': Value('string'), 'symbol': Value('string'), 'dataset_repo_id': Value('string'), 'space_repo_id': Value('string'), 'timeframes': List(Value('string')), 'metric': {'name': Value('string'), 'formula': Value('string'), 'unit': Value('string')}, 'snapshot': {'db_now_utc': Value('string'), 'latest_updated_at_utc': Value('string'), 'snapshot_lag_hours': Value('float64')}, 'event_window': {'pre_bars': Value('int64'), 'post_bars': Value('int64'), 'forward_horizons': List(Value('int64'))}, 'contents': {'top100_csv_count': Value('int64'), 'stats_csv_count': Value('int64'), 'html_dashboard_count': Value('int64'), 'html_manifest_count': Value('int64'), 'viewer_bundle_count': Value('int64'), 'viewer_shard_count': Value('int64'), 'viewer_event_detail_count': Value('int64'), 'space_site_count': Value('int64'), 'release_file_count': Value('int64'), 'research_contract_files': Value('int64')}, 'record_counts': {'top100_rows_total': Value('int64'), 'event_windows_rows': Value('int64'), 'forward_returns_rows': Value('int64')}, 'source_paths': {'workspace': Value('string'), 'csv': Value('string'), 'html': Value('string'), 'dataset': Value('string')}, 'release_artifacts': {'repo_layout': Value('string'), 'release_notes': Value('string'), 'rollback': Value('string'), 'space_index': Value('string'), 'space_workspace': Value('string')}, 'viewer_contract': {'bundle_file': Value('string'), 'shard_pattern': Value('string'), 'detail_pattern': Value('string'), 'state_key': Value('string'), 'direction_tabs': List(Value('string'))}, 'verification_commands': List(Value('string')), 'visualizations': List(Value('string')), 'notes': List(Value('string'))}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

BTCUSDT 全周期单根振幅 Top100 数据集

TradeCat Social Preview

赞助商列表

  • 交易猫(TradeCat):本项目的核心赞助方与长期支持方

本项目由 交易猫(TradeCat) 赞助与支持。交易猫为项目持续提供资金、社区与分发支持,帮助本项目保持开源迭代与长期维护。

交易猫 CA0x8a99b8d53eff6bc331af529af74ad267f3167777

数据集简介

这是一份面向研究用途的快照型数据集,内容来自 TradeCat / plugins/first-party/strategy-research 中的 btcusdt-um-amplitude-top100 工作区。

核心目标:

  • 提供 BTCUSDT1m / 5m / 15m / 1h / 4h / 1d / 1w 七个周期上的单根 K 线振幅 Top100 榜单
  • 提供对应的描述统计、集中度统计、覆盖范围统计、牛熊阶段统计与字段字典
  • 提供事件窗口上下文与 forward return 观察样本
  • 提供一份可本地打开的 HTML 交互看板,覆盖基础方案图、增强统计图、关系结构、事件上下文与按年净影响瀑布图

统计口径

  • 指标:range_pct
  • 公式:(high - low) / prev_close * 100
  • 单位:百分比
  • 排序:按单根 K 线振幅百分比从大到小排序
  • 样本:只包含闭合 K 线
  • 标的:BTCUSDT

目录结构

btcusdt-amplitude-top100-hf-20260417/
├── README.md
├── dataset_manifest.json
├── data/
│   ├── top100/
│   └── stats/
├── visualizations/
├── release/
├── research/
├── space/
└── checksums/

文件说明

data/top100/

每个周期一张 CSV,保存该周期单根振幅最大的 100 根 K 线。除基础 OHLCV 字段外,还补充:

  • body_abs / body_pct / body_ratio
  • upper_wick_ratio / lower_wick_ratio
  • close_pos_in_range
  • volume_log10 / volume_pct_rank
  • regime_phase / regime_label / regime_phase_label

data/stats/

补充统计表,覆盖:

  • 汇总统计
  • 描述统计
  • 集中度统计
  • 覆盖范围统计
  • 牛熊阶段窗口与阶段摘要
  • 数据字典
  • 研究流程映射
  • btcusdt_event_windows.csv
  • btcusdt_forward_returns.csv

当前统计 CSV 数量:10

visualizations/

  • btcusdt_amplitude_top100_dashboard.html:本地研究看板入口
  • btcusdt_amplitude_top100_dashboard.manifest.json:看板快照元数据与工件索引
  • btcusdt_amplitude_viewer_bundle.json:页面 viewer meta 真相,冻结默认状态、图层契约与 shard manifest,并把轻量索引 / 事件明细映射解析到 space/*.json.gz

release/

  • hf_repo_layout.csv:本地 bundle 文件到 HF dataset / space 仓库路径映射
  • RELEASE_NOTES.md:当前版本发布说明与验证命令
  • ROLLBACK.md:回滚步骤

research/

保存研究真相文件,便于复现当前快照对应的策略定义、参数与实验口径。

space/

这是准备推送到 Hugging Face Static Space 仓库的静态站点目录:

  • index.html:统计研究页
  • workspace.html:K 线交互工作区
  • README.md
  • btcusdt_amplitude_viewer_bundle.json
  • btcusdt_amplitude_viewer_meta.json
  • btcusdt_amplitude_viewer_shard_<timeframe>.json.gz
  • btcusdt_amplitude_viewer_event_<timeframe>_<rank>_<timestamp>.json.gz
  • app.css / app.js / plot_specs.json
  • plotly.min.js / lightweight-charts.standalone.production.js

使用建议

  1. 先看 data/top100/ 中各周期榜单
  2. 再看 data/stats/ 中的事件窗口、牛熊阶段与统计汇总
  3. 最后优先用浏览器打开 space/index.htmlspace/workspace.html

HF 发布真相

  • release_versionv20260417.130526
  • dataset_repo_id123olp/btcusdt-amplitude-top100
  • space_repo_id123olp/btcusdt-amplitude-top100-dashboard

第一轮验证命令

cd plugins/first-party/strategy-research
PYTHONPATH=src python3 -m pytest tests/test_amplitude_dashboard.py tests/test_cli.py -q
python3 -m http.server 8000 --directory strategies/btcusdt-um-amplitude-top100/outputs/dataset/btcusdt-amplitude-top100-hf-20260417/space

注意事项

  • 这是研究快照,不是交易信号服务
  • 当前工件以研究导出结果为准,不直接写生产业务库
  • 原始行情数据的授权与再分发边界,需要在公开上传前自行确认
Downloads last month
336

Space using 123olp/btcusdt-amplitude-top100 1