SuperAPI AI Directory

hk-foreign-flow

Data & analytics

View repository

Updated 10-16 10:50

About this skill

Hong Kong Stock Foreign Capital Flow Analyzer

In-depth analysis of the capital flows and investment preferences of foreign capital investing in Hong Kong stocks through Stock Connect, QFII, direct investment, and other channels.

Core Functions

💰 Foreign Capital Flow Monitoring

  • Total foreign capital inflow/outflow statistics
  • Stock Connect foreign capital flow
  • QFII capital movements
  • Direct investment capital flow

🏢 Institutional Preference Analysis

  • Foreign institutional holdings analysis
  • Changes in industry preferences
  • Ranking of individual stock preferences
  • Investment style analysis

📊 Capital Source Analysis

  • Capital sources by region
  • Analysis by institution type
  • Classification by investment strategy
  • Capital stability assessment

🎯 Investment Behavior Analysis

  • Buying and selling behavior patterns
  • Trends in holdings changes
  • Analysis of position adjustment timing
  • Investment cycle analysis

Use Cases

Investment Decisions

  • Track foreign capital movements
  • Identify foreign capital preferences
  • Grasp changes in liquidity conditions
  • Formulate follow-on investment strategies

Risk Management

  • Monitor the risk of foreign capital outflow
  • Identify liquidity risk
  • Assess market sentiment
  • Control position risk

Research and Analysis

  • Research on foreign capital behavior
  • Relationship between capital flows and returns
  • Research on international capital flows
  • Analysis of market openness

Output Content

💰 Foreign Capital Flow Overview

港股外资流向 (2026-02-15):
外资总流入: +45.8亿港元
港股通外资: +28.5亿港元
QFII资金: +12.3亿港元
直接投资: +5.0亿港元

近5日累计: +168.2亿港元
近20日累计: +356.7亿港元
月度累计: +625.3亿港元

🏢 Institutional Preference Analysis

外资机构偏好TOP10:
1. 腾讯控股(00700): +12.5亿 (增持0.4%)
2. 阿里巴巴(09988): +8.9亿 (增持0.6%)
3. 友邦保险(01299): +6.2亿 (增持0.3%)
4. 汇丰控股(00005): +5.8亿 (增持0.2%)
5. 美团(03690): +4.5亿 (增持0.5%)

行业偏好:
• 科技板块: 35% (主要配置)
• 金融板块: 25% (稳定配置)
• 消费品: 20% (增加配置)
• 医疗保健: 15% (关注配置)

📊 Capital Source Analysis

外资来源分布:
按地区:
• 欧洲: 45% (主要来源)
• 北美: 30% (重要来源)
• 亚太: 20% (增长来源)
• 其他: 5% (其他地区)

按机构类型:
• 养老基金: 40% (长期资金)
• 主权基金: 25% (战略资金)
• 对冲基金: 20% (短期资金)
• 其他机构: 15% (其他资金)

🎯 Investment Behavior Analysis

外资投资行为:
投资风格: 价值成长并重
持仓周期: 平均6-12个月
调仓频率: 季度调整为主
风险偏好: 中等风险

行为特征:
• 偏好大盘蓝筹股
• 注重公司治理
• 关注估值水平
• 长期投资导向

Capital Flow Indicators

Flow Indicators

  • Net inflow: 流入金额 - 流出金额
  • Inflow intensity: 净流入 / 平均日流入
  • Inflow sustainability: Consecutive inflow days
  • Inflow momentum: Rate of change in inflows

Preference Indicators

  • Industry preference level: 行业持仓 / 基准权重
  • Individual stock preference level: Changes in individual stock holdings
  • Style preference: Growth vs value preference
  • Risk preference: Volatility preference

Behavior Indicators

  • Holding concentration: Proportion of top ten holdings
  • Turnover rate: Buying and selling frequency
  • Holding period: Average holding time
  • Position adjustment magnitude: Magnitude of a single position adjustment

Technical Analysis

Trend Analysis

  • Inflow trend: Foreign capital inflow trend
  • Preference trend: Industry preference trend
  • Behavior trend: Investment behavior trend
  • Risk trend: Risk preference trend

Pattern Recognition

  • Seasonal pattern: Seasonality of foreign capital inflows
  • Event pattern: Event-driven inflows
  • Cycle pattern: Impact of economic cycles
  • Policy Mode: Policy Impact Mode

Data Sources

Primary Data Sources

  • HKEX: Hong Kong Stock Connect foreign capital data
  • CSRC: QFII holdings data
  • Major Brokerages: Foreign capital research reports
  • Data Providers: Foreign capital flow data

Data Update Frequency

  • Real-Time Data: Updated in real time during trading hours
  • Daily Data: Updated after daily market close
  • Holdings Data: Quarterly update
  • Historical Data: Over 10 years of historical data

Usage Instructions

Basic Query

# 获取外资流向
python scripts/foreign_flow.py --flow

# 获取机构偏好
python scripts/foreign_flow.py --preference

# 获取资金来源
python scripts/foreign_flow.py --source

# 获取投资行为
python scripts/foreign_flow.py --behavior

Advanced Analysis

# 流向历史分析
python scripts/foreign_flow.py --history 30

# 偏好变化分析
python scripts/foreign_flow.py --preference-change

# 资金来源分析
python scripts/foreign_flow.py --source-analysis

# 行为模式分析
python scripts/foreign_flow.py --behavior-pattern

Configuration Options

Analysis Options

# 按地区分析
python scripts/foreign_flow.py --by-region

# 按机构类型分析
python scripts/foreign_flow.py --by-institution

# 按投资策略分析
python scripts/foreign_flow.py --by-strategy

# 按时间周期分析
python scripts/foreign_flow.py --by-period

Display Options

# 简洁模式
python scripts/foreign_flow.py --simple

# 详细模式
python scripts/foreign_flow.py --detailed

# 排序选项
python scripts/foreign_flow.py --sort by_amount

Output Format

Table Format

┌─────────────┬──────────┬─────────┬──────────┬──────────┐
│ 股票代码   │ 股票名称 │ 外资流入 │ 持仓变化 │ 偏好评级 │
├─────────────┼──────────┼─────────┼──────────┼──────────┤
│ 00700      │ 腾讯控股 │ +12.5亿 │ +0.4%    │ 强烈偏好 │
│ 09988      │ 阿里巴巴 │ +8.9亿  │ +0.6%    │ 强烈偏好 │
│ 01299      │ 友邦保险 │ +6.2亿  │ +0.3%    │ 偏好     │
│ 00005      │ 汇丰控股 │ +5.8亿  │ +0.2%    │ 偏好     │
│ 03690      │ 美团     │ +4.5亿  │ +0.5%    │ 偏好     │
└─────────────┴──────────┴─────────┴──────────┴──────────┘

JSON Format

{
  "date": "2026-02-15",
  "foreign_flow": {
    "total_flow": 4580000000,
    "stock_connect": 2850000000,
    "qfii": 1230000000,
    "direct_investment": 500000000
  },
  "institution_preference": [
    {"code": "00700", "name": "腾讯控股", "flow": 1250000000, "holding_change": 0.004}
  ],
  "source_distribution": {
    "europe": 0.45,
    "north_america": 0.30,
    "asia_pacific": 0.20,
    "others": 0.05
  }
}

Notes

  1. Data Delay: Foreign capital data has a T+1 delay
  2. Disclosure Frequency: QFII data disclosure frequency is relatively low
  3. Estimated Data: Some data are estimated values
  4. Exchange Rate Impact: Consider the impact of exchange rate fluctuations
  5. Policy Impact: Pay attention to the impact of policy changes

Update Log

v1.0.0 (2026-02-15)

  • Initial version release
  • Support foreign capital flow monitoring
  • Institutional preference analysis
  • Funding source analysis
  • Investment behavior analysis

Hong Kong Stock Foreign Capital Flow Analyzer - A professional foreign capital flow monitoring tool