hk-connect-flow

Analyze Stock Connect capital flows and AH premium indices for market signals.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/0xZKnw/vibe-trading-tap --skill hk-connect-flow-0xzknw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hk-connect-flow
Source: https://github.com/0xZKnw/vibe-trading-tap/tree/main/agent/src/skills/hk-connect-flow
Command: npx skills add https://github.com/0xZKnw/vibe-trading-tap --skill hk-connect-flow-0xzknw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tushare, yfinance.

What problem does it solve?

This skill addresses the complexity of tracking institutional capital movements between mainland China and Hong Kong markets, which are critical indicators for market sentiment and price discovery.

Core Features & Use Cases

  • Flow Analysis: Monitors Northbound (foreign) and Southbound (mainland) capital flows to identify institutional accumulation or distribution trends.
  • Arbitrage & Valuation: Tracks the Hang Seng AH Premium Index to identify valuation discrepancies between dual-listed companies.
  • Use Case: Use this skill to determine if foreign institutional investors are rotating into defensive consumer staples or growth-oriented tech sectors based on real-time Stock Connect data.

Quick Start

Use the hk-connect-flow skill to analyze the latest Northbound and Southbound capital flow trends and provide a composite market signal.

Frequently Asked Questions about hk-connect-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Stock Connect capital flows for A-shares and H-shares?

To track Stock Connect capital flows, you analyze Northbound and Southbound net buy volumes. This skill evaluates real-time cross-border liquidity from Shanghai-Hong Kong and Shenzhen-Hong Kong programs to identify institutional accumulation trends.

What is the AH premium index and how does it indicate valuation arbitrage opportunities?

The AH premium index tracks valuation discrepancies between dual-listed A-shares and H-shares. By monitoring this index alongside cross-border capital flows, you can identify and act on quantitative valuation arbitrage opportunities.

How do I determine if foreign investors are rotating into specific sectors using Northbound capital flow?

You determine foreign investor sector rotation by analyzing Northbound capital flow allocation patterns. This skill assesses whether institutional capital is moving into defensive consumer staples or growth-oriented tech sectors based on real-time data.

Can I use tushare and yfinance to analyze cross-border market sentiment?

Yes, you can use tushare and yfinance to analyze cross-border market sentiment. This skill integrates with these financial APIs to process real-time capital flow data and generate quantitative insights into institutional market sentiment.

What are the limitations of using Stock Connect data for institutional market sentiment analysis?

A limitation of using Stock Connect data for market sentiment analysis is that it primarily tracks aggregate Northbound and Southbound volumes. It may not capture off-exchange institutional positioning or fully reflect rapid intraday liquidity shifts.