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
Build, standardize, compare, and validate multi-factor fundamental panels for Hong Kong and US equities from PandaAI operating, market-financial, industry-median, price-volume, and financial-statement APIs. Use for quality, value, growth, momentum, low-risk, composite-score, percentile-rank, or cross-market stock-screening tasks.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
一个可复现的 PandaAI 技能,用于构建、审计及验证港股与美股的标准化基本面因子面板。
A reproducible PandaAI skill for building, auditing, and validating standardized fundamental-factor panels across Hong Kong and US equities.
本技能明确区分三个问题:股票相对本地市场的因子表现、底层数据的完整性与可靠性,以及具备历史可检验条件的子因子能否预测未来收益。
The skill separates factor strength relative to the local market, supporting-data quality, and the forward-return behavior of historically testable subfactors.
| 因子 / Factor | 示例成分 / Example components | 方向 / Direction |
|---|---|---|
| 质量 / Quality | ROE、营业利润率、应计项 / ROE, operating margin, accruals | 质量越高越好,应计项越低越好 / Higher quality; lower accruals |
| 价值 / Value | 盈利收益率、账面市值比、销售额企业价值比 / Earnings yield, book-to-price, sales-to-EV | 越高代表越便宜 / Higher is cheaper |
| 成长 / Growth | 营收增长、盈利增长 / Revenue and earnings growth | 越高越强 / Higher is stronger |
| 动量 / Momentum | 26周及52周相对收益 / 26-week and 52-week relative returns | 越高越强 / Higher is stronger |
| 低风险 / Low risk | Beta、波动率 / Beta and volatility | 越低越强 / Lower is stronger |
原始特征在各自市场内按第 5/95 百分位缩尾并标准化,港股和美股不会混合标准化。
Raw features are winsorized at the 5th/95th percentiles and standardized within each market; HK and US securities are never standardized together.
核心复合因子为:
equal_weight(value, momentum, low_risk)
只有三个核心因子均可用时才计算复合分;质量与成长因子作为补充诊断。
The core composite is assigned only when all three factors are available; quality and growth remain optional diagnostics.
skill-hk-us-fundamental-factor/
├── SKILL.md
├── README.md
├── agents/openai.yaml
├── scripts/
│ ├── build_factors.py
│ ├── backtest.py
│ └── harness.py
├── references/
│ ├── api-map.md
│ └── runtime.md
├── outputs_mock_final/
├── outputs_sample_live/
├── outputs_full/
└── backtest_full/
pandasnumpypyarrowpanda_data>=0.0.9,<0.1pip install "panda_data>=0.0.9,<0.1"
请在仓库外配置环境变量;切勿提交真实凭据、访问令牌、.env 文件或私钥。
Set credentials outside the repository. Never commit credentials, access tokens, .env files, or private keys.
export PANDA_DATA_USERNAME="your_username"
export PANDA_DATA_[REDACTED:Password]
python scripts/build_factors.py --mode mock --market both --output-dir outputs
python scripts/harness.py --output-dir outputs
python scripts/build_factors.py \
--mode api --market both \
--symbols 0700.HK,0005.HK,AAPL,MSFT \
--start-year 2023 --end-year 2025 \
--output-dir outputs_live
python scripts/harness.py --output-dir outputs_live
python scripts/build_factors.py \
--mode api --market both --full-universe \
--start-year 2023 --end-year 2025 \
--output-dir outputs_full
python scripts/harness.py --output-dir outputs_full
python scripts/backtest.py \
--start-date 20240901 --end-date 20260728 \
--output-dir backtest_full
如有历史成分数据,增加 --constituent-history-csv data/constituent_history.csv。未提供时,系统使用实际价格/交易状态作为股票池代理,并将 S4 标记为轻微幸存者偏差,而非标签泄漏。
Add --constituent-history-csv data/constituent_history.csv when dated membership is available. Otherwise, observed price/trade status is used as a proxy and S4 is labeled minor survivorship bias, not label leakage.
该回测只验证价格型动量/低风险子因子,不会把当前价值快照回填至历史日期。
This backtest validates only the price-based momentum/low-risk subfactor; it never backfills the latest value snapshot into earlier dates.
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.
hk-us-fundamental-factor@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin hk-us-fundamental-factorPlugins from other owners that cover similar ground