Exchange-Traded Fund Premium Rate Analyzer for Openclaw

A zero-dependency financial utility designed to monitor and analyze real-time and historical premium or discount rates for Chinese A-share exchange-traded funds.

cantoneyes
v1.1.0
Jun 3, 2026
0
725
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fund-premium-tracker

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fund-premium-tracker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Exchange-Traded Fund Premium Rate Analyzer?

The Exchange-Traded Fund Premium Rate Analyzer is a robust financial extension engineered for algorithmic traders and retail investors operating within the Chinese A-share market. Built as part of the Openclaw Skills framework, this tool enables programmatic monitoring of market price deviations from the underlying Net Asset Value (NAV) across a broad spectrum of funds, including Shanghai and Shenzhen ETFs, LOFs, and cross-border QDII funds.

By leveraging high-performance, native Python architectures, the skill delivers real-time calculation of premium levels alongside structural trend data without relying on external third-party package dependencies. It equips users to instantly detect valuation anomalies, assess financial risk thresholds, and pinpoint market inefficiencies ripe for arbitrage execution.

Exchange-Traded Fund Premium Rate Analyzer Use Cases

  • Arbitrage Identification: Spot discrepancies between market trading prices and intra-day estimated net asset value (IOPV) to execute low-risk fund arbitrage.
  • Risk Mitigation: Detect extreme premium levels (> 5%) on popular QDII or industry-specific ETFs before making capital allocations, preventing buying at overvalued market tops.
  • Historical Trend Review: Pull past trading data to understand a fund's typical premium boundaries and baseline discount distributions over custom time intervals.
  • Portfolio Monitoring: Batch-query custom watchlists of market funds simultaneously to assess systemic risk and valuation health across an entire portfolio.

How Exchange-Traded Fund Premium Rate Analyzer Works

  1. Trigger Evaluation: The skill captures financial intent through natural language keywords such as premium rate, fund premium, or arbitrage.
  2. Data Ingestion: The underlying engine dispatches asynchronous HTTP requests directly to public East Money REST endpoints to collect real-time quotes, historical K-lines, and intra-day fund valuations.
  3. Valuation Calculation: The system runs mathematical formulas to determine current deviations based on operational windows (e.g., assessing real-time market price against the intra-day valuation estimate).
  4. Risk Grading: Computed premium percentages are mapped against strict statistical brackets to classify asset stability, assigning tags from Normal to Extreme risk.
  5. Structured Output Rendering: The tool transforms raw float data into user-facing console tables, text-based terminal histograms, and actionable directional trend pointers.

Exchange-Traded Fund Premium Rate Analyzer Setup

This skill utilizes Python 3 standard libraries, meaning it runs instantly without requiring external pip installations. Ensure your runtime environment has unrestricted outbound network access to connect with the underlying public APIs.

Script Execution Syntax

Run the real-time or historical scripts from your terminal path:

# Real-time premium query for a single asset (e.g., China Internet ETF)
python3 scripts/premium_realtime.py 513050

# Batch real-time premium query for multiple fund codes
python3 scripts/premium_realtime.py 513050 159915 164824

# Query historical premium trends for the past 20 trading days
python3 scripts/premium_history.py 513050

# Query historical premium trends with a custom day lookback
python3 scripts/premium_history.py 159941 --days 30

Exchange-Traded Fund Premium Rate Analyzer Data Schema & Taxonomy

The skill manages information flows by extracting data from public endpoints and outputting structured terminal schemas. No local database configuration is required.

Asset Support Profiles

Fund Type Code Prefix Example Profile
Shanghai ETF 51xxxx 513050 (China Internet ETF)
Shenzhen ETF 15xxxx 159915 (Chinext ETF)
Shanghai LOF 50xxxx 501009 (HFT CSI Bio-Tech LOF)
Shenzhen LOF 16xxxx 164824 (India Fund LOF)
QDII (Listed) Varied 159941 (Nasdaq ETF)

Data Source Taxonomy

  • Real-time Market Tickers: Sourced via push2.eastmoney.com
  • Historical Value Records: Sourced via push2his.eastmoney.com
  • Fund Official NAV: Sourced via api.fund.eastmoney.com
  • Intra-day Valuation (IOPV): Sourced via fundgz.1234567.com.cn

Exchange-Traded Fund Premium Rate Analyzer Advanced Features

  • Multi-Asset Batch Mode: Evaluate entire sets of ticker streams in a single execution pipeline to optimize script performance.
  • Dynamic Intra-Day IOPV Prioritization: Calculations automatically favor active intra-day fund estimates over static previous-day NAV tables to preserve analytical accuracy during market hours.
  • Automated Risk Grading Engine: Flags asset anomalies dynamically by categorizing premium percentages into clear risk boundaries (Normal, Mild, High, and Extreme).
  • Cross-Border Lag Compensation: Integrates specialized logic for QDII funds to account for overseas time-zone delays and notify users of processing discrepancies.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*