hk-connect-flow
Monitor real-time capital flows between mainland China and Hong Kong markets through Stock Connect channels. Northbound flows reveal foreign institutional appetite for A-shares, while Southbound flows show mainland investor positioning in HK assets. Includes sector allocation tracking, AH premium analysis, and composite scoring to identify cross-border risk sentiment.
hk-connect-flow tracks foreign institutional capital flows into A-shares via Northbound Stock Connect to assess market sentiment.
AI-generated summary based on this skill's SKILL.md
Install
HKUDS/Vibe-Trading/hk-connect-flow · repository language: Python
git clone https://github.com/HKUDS/Vibe-Trading
cp -r Vibe-Trading/agent/src/skills/hk-connect-flow ~/.claude/skills/hk-connect-flownpx skillfed install HKUDS/Vibe-Trading/hk-connect-flowFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is hk-connect-flow and what markets does it track?
hk-connect-flow monitors real-time capital flows between mainland China and Hong Kong markets through Stock Connect channels. The skill tracks Northbound flows that reveal foreign institutional appetite for A-shares, and Southbound flows that show mainland investor positioning in HK assets. It includes sector allocation tracking, AH premium analysis, and composite scoring to identify cross-border risk sentiment.
How does hk-connect-flow analyze Northbound A-shares foreign capital flows?
hk-connect-flow tracks Northbound A-shares foreign capital flows by monitoring foreign institutional capital entering mainland markets via the Stock Connect mechanism. The skill analyzes quota utilization, identifies top holdings, detects sector rotation patterns in foreign institutional positions, and combines these signals with exchange rate and MSCI rebalancing data to assess foreign investor appetite and positioning.
What Southbound HK mainland investor flows can hk-connect-flow reveal?
hk-connect-flow analyzes Southbound HK mainland investor flows to show how mainland investors allocate capital to Hong Kong assets. The skill tracks allocation patterns across sectors, monitors HK tech platform flows, and identifies dividend yield arbitrage opportunities between mainland and Hong Kong markets to reveal mainland investor positioning and sentiment.
How does hk-connect-flow identify AH premium arbitrage opportunities?
hk-connect-flow identifies AH premium arbitrage opportunities by tracking A-share and H-share premium levels for dual-listed stocks. The skill detects extreme premium levels and analyzes pricing discrepancies between mainland and Hong Kong listings to surface potential arbitrage signals for investors seeking to exploit cross-border valuation gaps.
What composite risk metrics does hk-connect-flow provide?
hk-connect-flow monitors cross-border flow sentiment and composite risk positioning through integrated scoring that combines Northbound and Southbound flow data, quota utilization rates, sector rotation patterns, and AH premium extremes. This composite approach reveals overall cross-border capital positioning and helps identify shifts in foreign and mainland investor risk appetite.
Under what license is hk-connect-flow distributed?
hk-connect-flow is distributed under the MIT license, allowing free use, modification, and distribution with minimal restrictions.
SKILL.md
rendered from the published skill — quoted content, verbatim
Stock Connect Fund Flow Analysis
Overview
Analyze capital flows through the Shanghai-Hong Kong and Shenzhen-Hong Kong Stock Connect programs. Northbound flows (foreign capital into A-shares) are a key institutional sentiment indicator for the China market; Southbound flows (mainland capital into Hong Kong) reveal mainland investor preference for HK-listed assets. Together they provide a real-time cross-border capital positioning signal.
Core Concepts
1. Stock Connect Architecture
| Channel | Direction | What It Measures |
|---|---|---|
| Shanghai Connect Northbound | Foreign → A-shares (SSE) | Foreign institutional A-share appetite |
| Shenzhen Connect Northbound | Foreign → A-shares (SZSE) | Foreign institutional A-share appetite (growth bias) |
| Shanghai Connect Southbound | Mainland → HK (HKEX) | Mainland capital HK allocation |
| Shenzhen Connect Southbound | Mainland → HK (HKEX) |
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
agent/src/skills/hk-connect-flow/SKILL.md