hk-connect-flow

Analyze cross-border stock flow data to identify market sentiment.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ebrahim-sani/trading-automation --skill hk-connect-flow-ebrahim-sani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hk-connect-flow
Source: https://github.com/ebrahim-sani/trading-automation/tree/main/vibe-trading/agent/src/skills/hk-connect-flow
Command: npx skills add https://github.com/ebrahim-sani/trading-automation --skill hk-connect-flow-ebrahim-sani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It transforms raw Northbound and Southbound fund flow data into clear, actionable market sentiment signals for Chinese A‑shares and Hong Kong stocks.

Core Features & Use Cases

  • Flow Metrics: Retrieves daily Northbound and Southbound net buy figures via Tushare and HKEX sources.
  • Trend Analysis: Computes 20‑day cumulative and 5‑day trend scores for both directions.
  • Sector Allocation: Highlights sector weight changes within Northbound holdings.
  • AH Premium Index: Evaluates dual‑listed price differentials to identify arbitrage opportunities.
  • Composite Signal: Generates a multi‑dimensional score that guides cross‑border trading decisions.

Quick Start

Generate a 20‑day Stock Connect flow analysis report using the hk‑connect‑flow skill.

Frequently Asked Questions about hk-connect-flow

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

FAQPage Schema
How do I analyze Northbound and Southbound Stock Connect fund flows for market sentiment?

You can analyze Stock Connect fund flows by retrieving daily net buy figures via Tushare and yfinance APIs, then computing 20-day cumulative trends and 5-day directional scores to gauge cross-border market sentiment.

What is AH premium evaluation in cross-border stock trading?

AH premium evaluation compares price differentials between dual-listed Chinese A-shares and Hong Kong stocks, identifying potential arbitrage opportunities based on cross-border valuation gaps.

Can I use Tushare and yfinance APIs to monitor daily Stock Connect sector allocation?

Yes, you can use Tushare and yfinance APIs to retrieve daily Northbound and Southbound flow metrics and highlight sector weight changes within Northbound holdings.

What's the best way to generate a composite signal for cross-border trading decisions?

The best way to generate a composite signal is to compute multi-dimensional scores from cumulative fund flow trends, sector allocation shifts, and AH premium differentials across both Northbound and Southbound directions.

How do I calculate 20-day cumulative trends for Northbound fund movements?

You calculate 20-day cumulative trends for Northbound fund movements by aggregating daily net buy figures retrieved from Tushare and HKEX sources into a continuous trend score.

Does Stock Connect flow analysis work for identifying arbitrage in dual-listed stocks?

Yes, Stock Connect flow analysis evaluates AH premium index differentials between dual-listed Chinese A-shares and Hong Kong stocks to identify actionable arbitrage opportunities.