china-datapack-builder
Purpose
Build professional A股投行数据包 (Data Pack) for investment banking workflows — M&A due diligence, IC review, deal execution.
Data Sources
Tier 0 — 万得 Wind(最全面付费数据)
Tier 1 — 同花顺 iFind(付费精确数据)/ AkShare MCP(Tier-2 免费备选)
get_financials(ticker, "income", "annual") → P&L history
get_financials(ticker, "balance", "annual") → Balance sheet
get_financials(ticker, "cashflow", "annual") → Cash flow
get_quote(ticker) → Current valuation
get_historical_data(ticker) → Trading history
get_industry_stocks(industry="...") → Peer comparison
get_stock_info(ticker) → Company profile
Secondary Sources
- 巨潮资讯 — mandatory filings (年报, 中报, 季报)
- 上交所 / 深交所 — announcements, filings
- 公司官网 — investor materials
- 企查查 / 天眼查 — corporate structure
- Wind / Choice — comprehensive data
Workflow
Step 1: Define Pack Scope
Data pack types:
| Pack Type |
Purpose |
Typical Content |
| Company overview |
Initial target screening |
Financials, profile, peers |
| Due diligence |
Pre-deal deep dive |
3-statement, quality of earnings, debt |
| IC preparation |
Investment committee |
Executive summary, model, risks |
| M&A comps |
Comparable transactions |
Precedent deals, trading comps |
| Sector deep dive |
Market context |
Industry overview, competitive map |
Step 2: Gather Source Materials
Financial data collection:
# 3-5 years historicals
for year in range(2020, 2025):
get_financials(ticker, "income", "annual")
get_financials(ticker, "balance", "annual")
get_financials(ticker, "cashflow", "annual")
Corporate information:
- 公司股权结构 (ownership structure)
- 子公司/参股公司 (subsidiaries / associates)
- 关联交易 (related party transactions)
- 对外担保 (guarantees)
- 诉讼仲裁 (litigation / arbitration)
Market data:
- Current and historical share price
- Trading volumes and liquidity
- Ownership breakdown (institutional, retail, 北向)
- Shareholder changes over time
Step 3: Normalize & Structure
Data normalization standards:
- Currency: All figures in CNY (人民币)
- Units: Consistent (亿元 preferred for large companies)
- Periods: Align fiscal years (typically Dec 31)
- Adjustments: Normalize for one-time items
Standard data pack sections:
Section 1: Executive Summary
- 1-page overview
- Key investment highlights
- Valuation summary
- Critical risks
Section 2: Company Overview
- Business description
- History and milestones
- Organizational structure
- Management team
- Shareholder structure
Section 3: Financial Summary
- Income statement (3-5 years)
- Balance sheet (3-5 years)
- Cash flow statement (3-5 years)
- Key ratios and metrics
- Revenue bridge
Section 4: Operating Metrics
- Revenue by segment
- Volume / unit data (if relevant)
- Capacity / utilization
- Geographic breakdown
Section 5: Quality of Earnings
- Revenue quality (cash conversion)
- Margin analysis
- One-time items identification
- Earnings sustainability
Section 6: Balance Sheet Analysis
- Asset quality
- Working capital efficiency
- Debt structure
- Off-balance sheet items
Section 7: Peer Comparison
- Trading multiples
- Financial metrics
- Operating metrics
- Valuation dispersion
Section 8: Transaction History
- Historical M&A
- Capital raising history
- Major corporate actions
Section 9: Risk Factors
- Company-specific risks
- Industry risks
- Regulatory risks
- Market risks
Step 4: Excel Workbook Structure
Recommended tabs:
| Tab |
Content |
| 封面 (Cover) |
Pack title, date, confidentiality |
| 摘要 (Summary) |
Key data points, valuation |
| 利润表 (Income Statement) |
Historical + projected |
| 资产负债表 (Balance Sheet) |
Historical + projected |
| 现金流量表 (Cash Flow) |
Historical + projected |
| 财务指标 (Key Metrics) |
Ratios, growth rates |
| 可比公司 (Comparable Cos) |
Peer analysis |
| 估值 (Valuation) |
DCF, multiples, football field |
| 运营数据 (Operating Data) |
Volume, capacity, etc. |
| 公司治理 (Governance) |
Ownership, management, related party |
| 风险 (Risks) |
Risk factor analysis |
Step 5: Quality Standards
Data integrity:
Formatting:
Completeness:
China-Specific Considerations
Regulatory Filings
| Filing |
Frequency |
Source |
Key Data |
| 年报 (Annual report) |
Annual |
巨潮 |
Full financials, MD&A, risks |
| 中报 (Semi-annual) |
Semi-annual |
巨潮 |
Condensed financials |
| 季报 (Quarterly) |
Quarterly |
巨潮 |
Condensed financials |
| 业绩预告 |
As required |
巨潮 |
Directional guidance |
| 重大事项公告 |
Ad-hoc |
巨潮 |
M&A, contracts, etc. |
Common Data Issues
| Issue |
Solution |
| 千元 vs 元 units |
Check 财务报表附注 for units |
| 合并 vs 母公司报表 |
Use 合并报表 for group analysis |
| 非经常性损益 |
Flag and normalize |
| 政府补助 |
Identify and separate |
| 关联交易占比高 |
Flag for due diligence |
Industry-Specific Data
| Industry |
Special Data Needs |
| 白酒 |
批价数据, 渠道库存, 经销商数量 |
| 半导体 |
产能数据, 晶圆出货, 客户结构 |
| 新能源 |
装机量, 产能, 技术参数 |
| 医药 |
管线数据, 临床进展, 集采中标 |
| 房地产 |
可售资源, 去化率, 土储 |
Quality Checks
Before delivering:
1---2name: china-datapack-builder3description: Build professional data packs for A-share investment banking deals — M&A due diligence, IC materials, company profiles. Adapted from the original datapack-builder skill for Chinese data sources (AkShare, 巨潮, exchange filings) and CAS accounting. Triggers on "A股数据包", "投行数据包", "datapack China", "due diligence pack A-share", or "IC data pack [company]".4---56# china-datapack-builder78## Purpose910Build professional **A股投行数据包 (Data Pack)** for investment banking workflows — M&A due diligence, IC review, deal execution.1112## Data Sources1314### Tier 0 — 万得 Wind(最全面付费数据)15- 覆盖:A股/港美股/基金/指数/债券/宏观/研报/分析(44个工具)16- MCP 服务:`wind-mcp`(需 `WIND_API_KEY` 密钥,以 `ak_` 开头)17- 优势:全市场覆盖面最广、数据最全面、包含研报和量化分析18- 密钥申请:https://aifinmarket.wind.com.cn/#/home1920### Tier 1 — 同花顺 iFind(付费精确数据)/ AkShare MCP(Tier-2 免费备选)2122```python23get_financials(ticker, "income", "annual") → P&L history24get_financials(ticker, "balance", "annual") → Balance sheet25get_financials(ticker, "cashflow", "annual") → Cash flow26get_quote(ticker) → Current valuation27get_historical_data(ticker) → Trading history28get_industry_stocks(industry="...") → Peer comparison29get_stock_info(ticker) → Company profile30```3132### Secondary Sources3334- **巨潮资讯** — mandatory filings (年报, 中报, 季报)35- **上交所 / 深交所** — announcements, filings36- **公司官网** — investor materials37- **企查查 / 天眼查** — corporate structure38- **Wind / Choice** — comprehensive data3940## Workflow4142### Step 1: Define Pack Scope4344**Data pack types:**4546| Pack Type | Purpose | Typical Content |47|-----------|---------|-----------------|48| Company overview | Initial target screening | Financials, profile, peers |49| Due diligence | Pre-deal deep dive | 3-statement, quality of earnings, debt |50| IC preparation | Investment committee | Executive summary, model, risks |51| M&A comps | Comparable transactions | Precedent deals, trading comps |52| Sector deep dive | Market context | Industry overview, competitive map |5354### Step 2: Gather Source Materials5556**Financial data collection:**5758```python59# 3-5 years historicals60for year in range(2020, 2025):61 get_financials(ticker, "income", "annual")62 get_financials(ticker, "balance", "annual")63 get_financials(ticker, "cashflow", "annual")64```6566**Corporate information:**67- 公司股权结构 (ownership structure)68- 子公司/参股公司 (subsidiaries / associates)69- 关联交易 (related party transactions)70- 对外担保 (guarantees)71- 诉讼仲裁 (litigation / arbitration)7273**Market data:**74- Current and historical share price75- Trading volumes and liquidity76- Ownership breakdown (institutional, retail, 北向)77- Shareholder changes over time7879### Step 3: Normalize & Structure8081**Data normalization standards:**82831. **Currency**: All figures in CNY (人民币)842. **Units**: Consistent (亿元 preferred for large companies)853. **Periods**: Align fiscal years (typically Dec 31)864. **Adjustments**: Normalize for one-time items8788**Standard data pack sections:**8990#### Section 1: Executive Summary91- 1-page overview92- Key investment highlights93- Valuation summary94- Critical risks9596#### Section 2: Company Overview97- Business description98- History and milestones99- Organizational structure100- Management team101- Shareholder structure102103#### Section 3: Financial Summary104- Income statement (3-5 years)105- Balance sheet (3-5 years)106- Cash flow statement (3-5 years)107- Key ratios and metrics108- Revenue bridge109110#### Section 4: Operating Metrics111- Revenue by segment112- Volume / unit data (if relevant)113- Capacity / utilization114- Geographic breakdown115116#### Section 5: Quality of Earnings117- Revenue quality (cash conversion)118- Margin analysis119- One-time items identification120- Earnings sustainability121122#### Section 6: Balance Sheet Analysis123- Asset quality124- Working capital efficiency125- Debt structure126- Off-balance sheet items127128#### Section 7: Peer Comparison129- Trading multiples130- Financial metrics131- Operating metrics132- Valuation dispersion133134#### Section 8: Transaction History135- Historical M&A136- Capital raising history137- Major corporate actions138139#### Section 9: Risk Factors140- Company-specific risks141- Industry risks142- Regulatory risks143- Market risks144145### Step 4: Excel Workbook Structure146147**Recommended tabs:**148149| Tab | Content |150|-----|---------|151| 封面 (Cover) | Pack title, date, confidentiality |152| 摘要 (Summary) | Key data points, valuation |153| 利润表 (Income Statement) | Historical + projected |154| 资产负债表 (Balance Sheet) | Historical + projected |155| 现金流量表 (Cash Flow) | Historical + projected |156| 财务指标 (Key Metrics) | Ratios, growth rates |157| 可比公司 (Comparable Cos) | Peer analysis |158| 估值 (Valuation) | DCF, multiples, football field |159| 运营数据 (Operating Data) | Volume, capacity, etc. |160| 公司治理 (Governance) | Ownership, management, related party |161| 风险 (Risks) | Risk factor analysis |162163### Step 5: Quality Standards164165**Data integrity:**166- [ ] All figures sourced from 巨潮 PDF or AkShare167- [ ] Cross-referenced against multiple sources where possible168- [ ] Adjustments documented169- [ ] No transcription errors170171**Formatting:**172- [ ] Consistent formatting throughout173- [ ] Clear section headers174- [ ] Source citations in cell comments175- [ ] Professional appearance176177**Completeness:**178- [ ] All sections relevant to deal type included179- [ ] Key risks identified and documented180- [ ] Valuation analysis complete181- [ ] Peer comparison adequate182183## China-Specific Considerations184185### Regulatory Filings186187| Filing | Frequency | Source | Key Data |188|--------|-----------|--------|----------|189| 年报 (Annual report) | Annual | 巨潮 | Full financials, MD&A, risks |190| 中报 (Semi-annual) | Semi-annual | 巨潮 | Condensed financials |191| 季报 (Quarterly) | Quarterly | 巨潮 | Condensed financials |192| 业绩预告 | As required | 巨潮 | Directional guidance |193| 重大事项公告 | Ad-hoc | 巨潮 | M&A, contracts, etc. |194195### Common Data Issues196197| Issue | Solution |198|-------|----------|199| 千元 vs 元 units | Check 财务报表附注 for units |200| 合并 vs 母公司报表 | Use 合并报表 for group analysis |201| 非经常性损益 | Flag and normalize |202| 政府补助 | Identify and separate |203| 关联交易占比高 | Flag for due diligence |204205### Industry-Specific Data206207| Industry | Special Data Needs |208|----------|-------------------|209| 白酒 | 批价数据, 渠道库存, 经销商数量 |210| 半导体 | 产能数据, 晶圆出货, 客户结构 |211| 新能源 | 装机量, 产能, 技术参数 |212| 医药 | 管线数据, 临床进展, 集采中标 |213| 房地产 | 可售资源, 去化率, 土储 |214215## Quality Checks216217Before delivering:218- [ ] Data pack scope clearly defined219- [ ] All financials complete and accurate220- [ ] Source materials documented221- [ ] Adjustments transparent222- [ ] Peer comparison relevant223- [ ] Valuation analysis included224- [ ] Risk factors comprehensive225- [ ] Excel workbook well-structured226- [ ] Confidentiality notices included227> **Data Source Mode Switch**: Set env var `IFIND_DATA_SOURCE_MODE` to control data source preference.228> - `ifind-only` (strict): Use iFind only, error if unavailable229> - `ifind-fallback` (default): iFind preferred, fallback to AkShare230> - `akshare-only`: Skip iFind, use AkShare only231> - `wind-only`: Wind only, error if unavailable232> - `wind-fallback`: Wind first, fallback to iFind → AkShare