Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Catalogs 50+ A-share quantitative factors across seven categories with formulas, data-field mappings, and a CLI for computing factor values.
Use this skill ↓20% 72%+52 ptsof test cases passed
Passed 18 of 25 test cases with the skill, and 5 of 25 without it.
3 of 3 safety checks passed
Not used yet
cn-stock-data finance(adata 43字段: basic_eps, roe_wtd, roa_wtd, gross_margin, net_margin, total_rev, net_profit_attr_sh, total_rev_yoy_gr, net_profit_yoy_gr 等)cn-stock-data kline(date, open, close, high, low, volume, amount, turnover_rate, pct_change)cn-stock-data quote(price, pe_ttm, market_cap, float_market_cap, volume_ratio)SCRIPTS_DIR="$SKILLS_ROOT/a-share-factor-library/scripts"
CN_STOCK="$SKILLS_ROOT/cn-stock-data/scripts"
# 计算单个因子
python "$SCRIPTS_DIR/factor_calculator.py" --factor ep --codes SH600519,SZ000858
# 动量因子
python "$SCRIPTS_DIR/factor_calculator.py" --factor momentum_6m --codes SH600519
# 批量计算一类因子
python "$SCRIPTS_DIR/factor_calculator.py" --category value --codes SH600519,SZ000858
# 列出所有因子
python "$SCRIPTS_DIR/factor_calculator.py" --list
# 查看某个因子定义
python "$SCRIPTS_DIR/factor_calculator.py" --info ep
详见 references/factor-library-catalog.md,包含全部 7 大类因子的:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.