Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsIn 1 marketplace
Diagnoses financial time series and produces analysis reports.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 | English
这是一个给 AI agent 和量化研究者使用的时序分析工具。它可以直接通过 Python API 分析价格序列、spread、双序列协整和均值回复半衰期,也可以自动生成先给结论、再展开 证据的 Markdown 检测报告。
flowchart TD
A["用户提出时序分析请求"] --> B["Agent 识别输入类型"]
B --> C{"输入类型"}
C --> D["单条价格序列"]
C --> E["Spread 或价差"]
C --> F["两条相关序列"]
D --> G["generate_time_series_report"]
G --> H["分析原始序列和 Log diff 1/5/10"]
E --> I["generate_spread_report"]
I --> J["analyze_spread: 半衰期 Hurst ADF KPSS"]
F --> K["generate_pair_cointegration_report"]
K --> L["analyze_pair_cointegration: Engle-Granger 和残差平稳性"]
H --> M["解释平稳性 记忆性 趋势性 分布形态"]
J --> M
L --> M
M --> N["给出策略和因子投研方向"]
N --> O["输出 Markdown 和 PNG 图"]
O --> P["用户先读结论 再检查证据"]
下面的案例来自 reports/panda_data_futures/multi_symbol_futures_timeseries.md,
使用 PandaData 真实期货日线,对 IF_DOMINANT.CFE、CU_DOMINANT.SHF 和
I_DOMINANT.DCE 生成自动时序检测报告。报告同时分析原始价格序列和
Log diff 1/5/10。
| symbol | n_obs | trend_type | tail | skew |
|---|---|---|---|---|
IF_DOMINANT.CFE | 242 | strong trend, non-stationary (trend strategies) | fat_tail | right_skew |
CU_DOMINANT.SHF | 242 | weak trend or counter-trend | fat_tail | symmetric |
I_DOMINANT.DCE | 242 | weak trend or counter-trend | fat_tail | right_skew |
IF_DOMINANT.CFE 的报告结论示例:


价差和双序列协整也有可审阅的 Markdown report 示例:
reports/time_series_examples/demo_spread/demo_spread_spread_report.mdreports/time_series_examples/demo_pair/demo_pair_cointegration_report.mduv run python -m pytest tests/ -q
uv run ruff check .
from skill_time_series_analysis import generate_time_series_report
report = generate_time_series_report(
price,
series_name="demo",
windows=[60, 120, 180],
lags=[1, 5, 20],
output_dir="reports/demo",
)
print(report.to_markdown())
from skill_time_series_analysis import generate_pair_cointegration_report, generate_spread_report
spread_report = generate_spread_report(spread, series_name="demo_spread", output_dir="reports/demo_spread")
pair_report = generate_pair_cointegration_report(y, x, pair_name="demo_pair", output_dir="reports/demo_pair")
项目保留一个 PandaData 多品种期货时序分析示例报告:
reports/panda_data_futures/multi_symbol_futures_timeseries.mdtests/test_panda_data_futures_report.pyget_market_data(type="future")IF_DOMINANT.CFE, CU_DOMINANT.SHF, I_DOMINANT.DCE重新生成报告需要 PandaData 凭据:
PANDA_DATA_ENV_FILE=/path/to/.env \
uv run python -m pytest tests/test_panda_data_futures_report.py -q
.env 文件中应包含 PANDA_DATA_USERNAME 和 PANDA_DATA_PASSWORD。
没有凭据或 SDK 时,该 integration 测试会跳过;Python 包本身不依赖 PandaData。
先用高层主入口:
generate_time_series_reportgenerate_spread_reportgenerate_pair_cointegration_reportinterpret_time_series_analysisanalyze_price_seriesanalyze_spreadanalyze_pair_cointegration需要自定义工作流时,再用可组合诊断 API:
distribution_diagnosticsstationarity_diagnosticslog_diff_diagnosticsmean_reversion_diagnosticscointegration_diagnostics底层 helper 仅用于高级场景:
kde_analysis, qq_analysis, ts_groupby_periodTimeSeriesAnalyzer, analysis_results_to_dfhalf_life_of_mean_reversion, engle_granger_cointegrationv1 运行包不包含策略生成、机器学习、三重屏障标签、回测、PandaData 客户端或市场数据
管理。tests/test_panda_data_futures_report.py 只是可选的真实数据 integration 示例,用
来证明 API 能处理外部期货行情。输出仅用于研究诊断,不构成投资建议或交易信号。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
time-series-analysis@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin time-series-analysis