Predicts whether an A-share stock will be flagged ST/*ST in the next fiscal year, using financial reports, dividend records, audit opinions, and regulatory penalty data.
npx clawhub@latest install ashare-pre-st-filterAshare ST Risk Filter is a prediction framework for A-share investors who need to know whether a stock is likely to receive an ST or *ST risk warning in the next fiscal year. It evaluates four quantitative regulatory red lines and three factual evidence dimensions, outputting both a risk level and a prediction confidence rating. It depends on the tushare skill for financial data and includes a bundled script for fetching Sina Finance regulatory penalty records.
npx clawhub@latest install ashare-pre-st-filterClick the Install button at the top of this page for one-click setup
8xxxxx.BJ), Hong Kong, US markets, or is a crypto or commodity instrument — this skill explicitly rejects those.Every analysis produces two independent ratings: a risk level (极高/高/中/低) and a prediction confidence level (高/中高/中/低). These are derived separately so a high-risk conclusion with low confidence is clearly distinguishable from a high-risk conclusion with high confidence.
The skill evaluates R1 (revenue + net profit, using min(n_income, profit_dedt)), R2 (year-end net assets), R3 (three-year cumulative dividend compliance), and R4 (consecutive loss chain with mandatory revenue linkage). Each uses board-specific thresholds for main board vs. ChiNext/STAR Market.
Penalties fetched from Sina Finance are scored over two time windows and weighted by subject type: company-level penalties count at 1.0×, while shareholder or officer penalties count at 0.5×. This prevents companies with shareholder-side violations from being systematically over-penalized.
When multiple data sources are available for the same metric, the skill enforces a strict priority order: earnings forecast or flash report > Q3 report > interim report > prior annual report. A higher-quality source always overrides a lower-quality one, and the source used is cited explicitly in the output.
All financial and fundamental data is fetched from tushare first. When tushare returns empty or fails due to insufficient credits, the skill automatically falls back to akshare and flags the downgrade in the output, reducing confidence by one level for any red line relying on akshare data.
When audit data is available, a single qualified or adverse opinion triggers a high-risk flag. When the fina_audit interface returns no data, the skill outputs direct URLs to cninfo, SSE, or SZSE disclosure pages so the user can verify manually — it never silently skips this check.
Before entering a position in an A-share stock, run this skill after the latest quarterly report to get a structured prediction of ST/*ST risk for the coming fiscal year, with explicit evidence citations.
After each Q3 or interim reporting period, re-run the skill across held positions to identify any stocks where financial deterioration has pushed one or more red lines into high-risk territory.
For stocks already carrying an ST designation, the skill shifts its analysis to predict *ST escalation or forced delisting probability, applying stricter thresholds appropriate to the current warning status.
Use the regulatory penalty dimension independently to identify companies with a high frequency of exchange warnings, regulatory letters, or inquiry letters — a leading indicator of 'compliance-type ST' even when financials look borderline.
income, balancesheet, fina_indicator, forecast, express, fina_audit, dividend, daily, daily_basic, stock_basic, namechange, stock_st, disclosure_datescripts/fetch_sina_penalties.py (stdlib only, no pip dependencies)60xxxx.SH, 00xxxx.SZ), ChiNext (30xxxx.SZ), or STAR Market (688xxx.SH)npx clawhub@latest install ashare-pre-st-filterLog in to write a review
No reviews yet. Be the first to share your experience!