Logotipo de Adr Hshare

Adr Hshare

OrganizaciónPopular
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

Descripción general

EditorHKUDS
RepositorioVibe-Trading
Nombre de la habilidadadr-hshare
Estrellas
33.6K
Forks
5.5K
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por HKUDS en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Adr Hshare en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/adr-hshare
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Adr Hshare en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Adr Hshare automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Adr Hshare no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Adr Hshare en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Adr Hshare está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Adr Hshare en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/adr-hshare. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Adr Hshare?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Adr Hshare?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Adr Hshare con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Adr Hshare?

Sí. HKUDS la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇