Logo de Adr Hshare

Adr Hshare

OrganizaçãoPopular
HKUDS
adr-hshare

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

Add to TypingMind

Visão geral

Publicado porHKUDS
RepositórioVibe-Trading
Nome da habilidadeadr-hshare
Estrelas
33.6K
Forks
5.5K
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por HKUDS no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Adr Hshare no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/adr-hshare
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading
mkdir -p .claude/skills
cp -r /tmp/Vibe-Trading/agent/src/skills/adr-hshare .claude/skills/adr-hshare
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Adr Hshare em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Adr Hshare automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Adr Hshare não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

ADR / H-Share / A-Share Cross-Listing Analysis

Overview

Many Chinese companies are listed on multiple exchanges — A-shares in Shanghai/Shenzhen, H-shares in Hong Kong, and ADRs in the US. Pricing gaps between these listings create arbitrage opportunities and reveal market-specific sentiment differences. This skill provides frameworks for analyzing cross-listing premiums, identifying arbitrage signals, and assessing delisting risk for US-listed Chinese ADRs.

Core Concepts

1. Cross-Listing Structures

StructureDescriptionExamples
A + H dual-listedSame company listed on both A-share and HK exchangePetroChina (601857.SH / 0857.HK), ICBC (601398.SH / 1398.HK)
H + ADR dual-listedHK-listed with US ADRAlibaba (9988.HK / BABA), JD.com (9618.HK / JD)
A + H + ADR triple-listedAll three marketsChina Life (601628.SH / 2628.HK / LFC)
HK primary + US secondaryPrimary listing in HK, secondary ADRTencent (0700.HK / TCEHY OTC)
US primary → HK secondaryOriginally US, added HK listingAlibaba (BABA → 9988.HK), Baidu (BIDU → 9888.HK)

2. AH Premium Analysis

AH Premium = (A-share price / H-share price in CNY terms - 1) × 100%

python
def calculate_ah_premium(a_price_cny, h_price_hkd, usdcny, usdhkd):
    """Calculate AH premium for a dual-listed stock."""
    h_price_cny = h_price_hkd * (usdcny / usdhkd)  # Convert HKD to CNY
    ah_premium = (a_price_cny / h_price_cny - 1) * 100
    return ah_premium

# Example: PetroChina
# A-share: 8.50 CNY, H-share: 6.20 HKD
# USDCNY: 7.25, USDHKD: 7.82
# H in CNY: 6.20 * (7.25/7.82) = 5.75 CNY
# AH Premium: (8.50/5.75 - 1) * 100 = 47.8%

AH Premium signal interpretation:

Premium LevelInterpretationAction
>50%Extreme A-share premium; A-share speculative bubble or H-share extreme undervaluationStrong: buy H, sell/avoid A
30-50%Elevated premium; normal for high-retail-participation namesModerate: favor H if fundamentals same
10-30%Normal range for most AH pairsNeutral; no strong arbitrage signal
0-10%Compressed premium; A-shares relatively cheapUnusual; investigate catalyst
<0%H-share premium over A-shareVery rare; usually near-term event-driven

Structural drivers of AH premium:

  1. Liquidity premium: A-shares have much higher retail participation and turnover → liquidity premium
  2. Access premium: A-shares were historically hard for foreigners to access → scarcity premium
  3. Currency expectations: CNY depreciation expectations widen the premium
  4. Regulatory arbitrage: different trading rules (T+1 in A-shares vs T+0 in HK)
  5. Investor composition: A-share retail speculative premium vs HK institutional valuation discipline

3. ADR Premium/Discount Analysis

ADR premium = (ADR price in USD / HK equivalent in USD - 1) × 100%

python
def calculate_adr_premium(adr_price_usd, hk_price_hkd, adr_ratio, usdhkd):
    """
    Calculate ADR premium over HK listing.
    adr_ratio: number of HK shares per 1 ADR (e.g., BABA: 1 ADR = 8 HK shares)
    """
    hk_equivalent_usd = (hk_price_hkd * adr_ratio) / usdhkd
    premium = (adr_price_usd / hk_equivalent_usd - 1) * 100
    return premium

# Example: Alibaba
# BABA ADR: $85.00, 9988.HK: HKD 82.50
# ADR ratio: 1 ADR = 8 HK shares
# HK equivalent: (82.50 * 8) / 7.82 = $84.40
# ADR premium: (85.00/84.40 - 1) * 100 = 0.71%

Key ADR conversion ratios:

CompanyADR TickerHK TickerADR Ratio (HK:ADR)ADR Exchange
AlibabaBABA9988.HK8:1NYSE
JD.comJD9618.HK2:1NASDAQ
BaiduBIDU9888.HK8:1NASDAQ
BilibiliBILI9626.HK1:1NASDAQ
NIONIO9866.HK1:1NYSE
XPengXPEV9868.HK2:1NYSE
Li AutoLI2015.HK2:1NASDAQ
NetEaseNTES9999.HK5:1NASDAQ
Trip.comTCOM9961.HK1:1NASDAQ
PinduoduoPDDN/A (US-only)N/ANASDAQ

ADR premium drivers:

  • US trading hours sentiment (earnings releases, macro data during US hours)
  • US-specific regulatory events (SEC, PCAOB audits)
  • Liquidity premium (ADR often more liquid for global funds)
  • Time zone gap: ADR closes at HK's open → overnight gap creates premium/discount

4. Delisting Risk Assessment

HFCAA (Holding Foreign Companies Accountable Act) framework:

Since 2022, PCAOB gained access to audit workpapers of Chinese companies. Key risks:

Risk LevelCriteriaImpact
LowPCAOB inspection completed, no issuesADR status stable
MediumPCAOB inspection completed, deficiencies notedMonitor for resolution
HighPCAOB access revoked or restricted3-year delisting countdown activated
CriticalOn SEC "identified issuer" list for 3 consecutive yearsForced delisting

Delisting risk indicators:

python
delisting_risk_factors = {
    "pcaob_status": "inspected",     # inspected / pending / blocked
    "sec_identified_years": 0,        # 0, 1, 2, or 3 (3 = delist)
    "has_hk_listing": True,           # Backup listing reduces impact
    "hk_listing_type": "primary",     # primary (can be in Connect) vs secondary
    "vie_structure": True,            # Variable Interest Entity adds legal risk
    "state_owned": False,             # SOE status adds geopolitical risk
}

# Companies with HK primary listing (BABA, JD, BIDU, NTES, etc.) have
# a safety net if US delisting occurs → fungible conversion ADR → HK shares
# Companies with US-only listing (PDD until HK listing) face higher risk

5. Cross-Listing Arbitrage Strategies

Strategy 1: AH Premium Mean-Reversion

python
# When AH premium for a specific stock diverges significantly from its historical average
ah_premium_current = 45  # current premium
ah_premium_mean_12m = 35  # 12-month average
ah_premium_std = 8        # standard deviation

z_score = (ah_premium_current - ah_premium_mean_12m) / ah_premium_std

if z_score > 2.0:
    signal = "fade_premium"  # A-share overvalued vs H; buy H, avoid A
elif z_score < -2.0:
    signal = "buy_premium"   # A-share undervalued vs H; buy A, avoid H
else:
    signal = "neutral"

Strategy 2: ADR-HK Intraday Arbitrage

  • During overlapping trading hours (HK morning = US pre-market via ADR), price gaps can appear
  • Professional arbitrageurs use ADR↔HK fungible conversion to capture these gaps
  • For research purposes: tracking ADR premium trend indicates which market is leading sentiment

Strategy 3: Event-Driven Cross-Listing

  • New HK listing announcement (US→HK): ADR typically dips 2-5% on dilution fear, then recovers
  • MSCI / FTSE index inclusion of HK listing: triggers passive fund buying in HK
  • Stock Connect inclusion (HK primary listing eligible): triggers mainland institutional buying

Data Access

python
import yfinance as yf

# Fetch ADR and HK prices simultaneously
baba_adr = yf.download("BABA", start="2025-01-01", end="2026-03-30", progress=False)
baba_hk = yf.download("9988.HK", start="2025-01-01", end="2026-03-30", progress=False)

# For A+H pairs
petrochina_a = yf.download("601857.SS", start="2025-01-01", end="2026-03-30", progress=False)
petrochina_h = yf.download("0857.HK", start="2025-01-01", end="2026-03-30", progress=False)

# FX rates for premium calculation
cny = yf.download("CNY=X", start="2025-01-01", end="2026-03-30", progress=False)  # USD/CNY
hkd = yf.download("HKD=X", start="2025-01-01", end="2026-03-30", progress=False)  # USD/HKD

# AH Premium Index (HSAHP)
# Not directly on yfinance; use Hang Seng website or Tushare

Output Format

## Cross-Listing Analysis — [Company Name]

### Listing Structure
- **A-share**: [code] @ [price CNY]
- **H-share**: [code] @ [price HKD]
- **ADR**: [ticker] @ [price USD] (ratio: X HK shares = 1 ADR)

### Premium/Discount
- **AH Premium**: [X%] (12m avg: X%, z-score: X.X)
- **ADR-HK Premium**: [X%] (5d avg: X%)
- **Direction**: [AH premium widening / narrowing / stable]

### Valuation Comparison
| Metric | A-share | H-share | ADR |
|--------|---------|---------|-----|
| PE (TTM) | XX.X | XX.X | XX.X |
| PB | X.X | X.X | X.X |
| Dividend yield | X.X% | X.X% | X.X% |

### Delisting Risk (ADR)
- **PCAOB status**: [inspected / pending]
- **SEC identified years**: [0/1/2/3]
- **HK backup**: [yes-primary / yes-secondary / no]
- **Risk level**: [low / medium / high / critical]

### Arbitrage Signal
- **AH premium z-score**: [X.X] → [fade premium / neutral / buy premium]
- **Best market to buy**: [A / H / ADR] — rationale
- **Catalyst**: [index inclusion, Connect eligibility, earnings]

### Investment Implication
- **Preferred listing**: [H-share / ADR / A-share] for new position
- **Risk**: [delisting, FX, regulatory, liquidity]

Notes

  • AH premium arbitrage is not freely executable: A-shares and H-shares are NOT fungible (no direct conversion), so true arbitrage requires separate capital pools
  • ADR↔HK conversion IS possible for most dual-listed names (via depositary bank), but takes 2-3 business days and involves fees
  • Currency risk (CNY, HKD, USD) is a major driver of cross-listing premiums; always hedge or account for FX when comparing
  • VIE (Variable Interest Entity) structure adds a layer of legal risk for many Chinese ADRs; this is a structural risk, not a trading signal
  • Stock Connect eligibility requirements mean not all HK-listed Chinese companies are accessible to mainland investors
  • This framework is for research purposes only and does not constitute investment advice

Perguntas frequentes

O que a habilidade de IA Adr Hshare faz?

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

Por que usar Adr Hshare no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Adr Hshare é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Adr Hshare no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/adr-hshare. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Adr Hshare?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Adr Hshare?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Adr Hshare com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Adr Hshare é gratuita?

Sim. A habilidade é publicada no GitHub por HKUDS sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇