← 返回
未分类 Key 中文

Financial Risk Scanner for Listed Companies

Analyze listed company financials to detect 21 fraud risk indicators with severity ratings and cross-validation for accounting anomalies and governance issues.
分析上市公司财务,识别21项欺诈风险指标并给出严重程度评级,同时交叉验证会计异常和治理问题。
laigen
未分类 clawhub v1.0.4 1 版本 100000 Key: 需要
★ 1
Stars
📥 342
下载
💾 0
安装
1
版本
#financial-risk#fraud-detection#fundamental-analysis#investment#latest#stock-analysis

概述

Financial Risk Scanner

Scan listed company financial statements for potential fraud signals and accounting anomalies using Tushare data APIs.

Quick Start

python3 scripts/analyze_company.py <ts_code>

Example:

python3 scripts/analyze_company.py 000001.SZ

Workflow

  1. Fetch Financial Data: Retrieve 10+ years of annual financial statements (balance sheet, income statement, cash flow statement) via Tushare
  2. Calculate Risk Metrics: Compute 21 risk indicators with historical trend analysis
  3. Cross-validate: Check company announcements for supporting evidence when anomalies detected
  4. Generate Report: Produce structured risk assessment with severity ratings and recommendations

Risk Indicators

CategoryIndicatorDetection Criteria
----------------------------------------
Asset RealityCash-Debt ParadoxCash > 15% assets + Interest-bearing debt > 30% assets
Receivables AnomalyReceivables growth >> Revenue growth
Inventory AnomalyInventory growth >> COGS growth
Prepayments SurgePrepayments > 5% assets without business rationale
Other Receivables HighOther receivables > 5% net assets
Construction SuspendedConstruction long uncompleted or excessive
Profit QualityCash-Profit DivergenceHigh profit + Negative operating cash flow (3+ years)
Gross Margin AnomalyGM far above peers or rising persistently
Sales Expense AnomalySales expense ratio far below peers
Abnormal Non-recurringNon-recurring items > 30% of profit
Asset Impairment BathOne-time large impairment charges
Related PartyRelated Transaction HighRelated purchase/sales > 30%
Related Fund FlowsRelated party in other receivables/payables high
Related GuaranteesExternal guarantees > 50% net assets
Capital StructureGoodwill HighGoodwill > 30% net assets
Debt Ratio HighDebt ratio > 70% and rising
Short-term LiquidityShort-term debt / Cash > 3x
Dual Debt HighLong + Short debt high with cash strain
Audit & GovernanceAuditor ChangesConsecutive auditor changes
Non-standard OpinionAudit opinion with emphasis or reservation
Executive DeparturesCFO/Board secretary frequent changes

Key Metrics Formulas

Cash-Debt Paradox Ratio = (Cash / Total Assets) × (Interest Debt / Total Assets)
Cash-Profit Ratio = Operating Cash Flow / Net Profit (threshold: < 0.5 for 3+ years)
Receivables Growth Ratio = Receivables Growth Rate / Revenue Growth Rate
Inventory Turnover Ratio = COGS / Average Inventory
Gross Margin = (Revenue - COGS) / Revenue
Debt Ratio = Total Liabilities / Total Assets
Liquidity Pressure = Short-term Borrowing / Cash Balance

References

For detailed detection logic and thresholds, see references/risk_indicators.md.

Cross-Validation Sources

When anomalies are detected, cross-validate with:

  • Company announcements (via Tushare announcement API)
  • Audit reports in annual reports
  • Regulatory filings and enforcement notices
  • News and media coverage

Output Format

Reports are saved to ~/.openclaw/workspace/memory/financial-risk/_.md

Report sections:

  1. Company Overview: Basic info, industry, listing date
  2. Risk Summary: Total risks, severity distribution, top concerns
  3. Detailed Analysis: Each indicator with historical trend charts
  4. Cross-validation: Supporting evidence from announcements
  5. Recommendations: Priority actions and monitoring points

Severity Levels

LevelSymbolCriteria
-------------------------
Critical🔴Multiple indicators triggered, strong fraud signals
High🟠Single strong indicator or 3+ moderate signals
Moderate🟡Anomaly detected but needs verification
Low🟢Minor concern, monitor periodically

Environment Variables

VariableRequiredDescription
----------:--------:-------------
TUSHARE_TOKEN✅ YesTushare Pro API Token for Chinese A-share market data

How to obtain TUSHARE_TOKEN:

  1. Register at https://tushare.pro/register
  2. Get your token from the user center
  3. Set environment variable:

```bash

export TUSHARE_TOKEN="your_token_here"

```

Python Dependencies

PackageVersionPurpose
---------------------------
tushare>=1.2.0A-share market data API
pandas>=1.3.0Data manipulation and analysis

Install dependencies:

pip install tushare pandas

Notes

  • Annual data preferred for stability; quarterly available for recent trends
  • Industry comparison essential for margin and expense analysis
  • Historical context matters: 10+ years for trend significance

Limitations

LimitationDescription
-------------------------
API Token RequiredRequires a Tushare Pro API token to fetch data
Market ScopeOnly supports Chinese A-share market listed companies
Historical DataLimited to last 10 years of financial data
Related Party DataTransaction data with related parties requires manual verification from annual report notes
Industry ComparisonSome industry metrics may not have sufficient peer data for comparison

Data Sources

SourceTypeDescription
---------------------------
Tushare Pro APIPrimaryChinese A-share financial data, market data, and announcements

Provenance

FieldValue
--------------
Authorlaigen
LicenseMIT
Homepagehttps://clawhub.ai/skills/financial-risk-scanner
RegistryClawHub

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-05-07 13:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Hormuz Strait Monitor

laigen
追踪霍尔木兹海峡航运数据。监控通行量、日吞吐量及非伊朗籍船舶数量,数据来源于hormuzstraitmonitor.com。
★ 1 📥 456
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 130 📥 42,445
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 163 📥 40,264