fundamental-filter

Filter stocks by PE, PB, and ROE criteria across A-share, US, and HK universes.

30.4k|4.9k|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/HKUDS/Vibe-Trading --skill fundamental-filter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fundamental-filter
Source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/fundamental-filter
Command: npx skills add https://github.com/HKUDS/Vibe-Trading --skill fundamental-filter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fundamental data screening across A-share, US, and HK universes can be fragmented and error-prone, making it hard to build consistent value or growth baskets for backtests.

Core Features & Use Cases

  • Multi-source screening: merge tushare extra_fields for A-shares and call yfinance Ticker.info for HK/US symbols to access PE, PB, ROE, and market-cap metrics.
  • Value and growth filters: apply default value rules (positive PE, cap PB, ROE floor) and optional growth limits (PE_TTM range, minimum ROE, market-cap floor) to shape the universe.
  • Real-world workflow: derive a screened stock list, drop companies with missing extra_fields, and weight each qualifying symbol equally for long-only portfolios.

Quick Start

Ask the agent to screen my selected tickers with pe_max=20, pb_max=3, roe_min=8, and an optional mcap_min before allocating equal weights.

Frequently Asked Questions about fundamental-filter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I screen stocks by PE, PB, and ROE for backtesting?

You can filter stocks by setting a maximum PE ratio, a PB ceiling, and a minimum ROE floor to generate long-only screening signals. This Skill applies those fundamental rules across A-share, US, and HK universes to build value or growth baskets for backtesting.

Can I use yfinance to pull fundamental data for US and HK stock screening?

Yes, yfinance is used to retrieve point-in-time fundamental info for US and HK symbols during stock screening. The tool calls Ticker.info to access PE, PB, ROE, and market-cap metrics required to filter your value or growth universe.

How do I filter A-share stocks using tushare extra_fields?

Filtering A-share stocks uses tushare extra_fields to access fundamental metrics like PE, PB, and ROE. The tool drops companies with missing extra_fields data and handles NaNs to ensure accurate value or growth universe construction.

How do I handle decimal versus percent ROE units when screening stocks?

Handling decimal-versus-percent ROE units during stock screening requires standardizing input values before applying the ROE floor. The Skill processes these unit variations from tushare and yfinance to ensure accurate fundamental filtering.

Does fundamental screening support market-cap minimums for growth portfolios?

Yes, fundamental screening supports optional market-cap minimums to shape your growth portfolio universe. You can set an mcap_min parameter alongside PE_TTM ranges and ROE floors to filter out smaller companies during the stock selection process.