Etf Pre Single logo

Etf Pre Single

Organization
FTShare-Lab
etf-pre-single

查询单只 ETF 盘前数据。用户问某只 ETF 盘前、申购赎回单位、净值、现金差额、IOPV、510300 盘前时使用。

Overview

PublisherFTShare-Lab
RepositoryFTShare-skill
Skill nameetf-pre-single
Stars
64
Forks
14
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by FTShare-Lab on GitHub. Read the source before you install it.

Installation

Install the Etf Pre Single AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/FTShare-Lab/FTShare-skill/tree/main/ftshare-market-data/sub-skills/etf-pre-single
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/FTShare-Lab/FTShare-skill.git /tmp/FTShare-skill
mkdir -p .claude/skills
cp -r /tmp/FTShare-skill/ftshare-market-data/sub-skills/etf-pre-single .claude/skills/etf-pre-single
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Etf Pre Single in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Etf Pre Single on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Etf Pre Single is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

查询单只 ETF 盘前数据

1. 接口描述

项目说明
接口名称查询单只 ETF 盘前数据
外部接口GET /api/v2/market/data/etf-pre-single
请求方式GET
适用场景根据标的代码查询单只 ETF 的盘前信息(申购赎回单位、净值、现金差额等);不传 date 时使用当日(CST);未找到或报错时接口返回相应错误信息

2. 请求参数

参数名类型是否必填描述取值示例备注
symbolstring是ETF 标的代码,带交易所后缀510300.XSHG、159915.XSHE-
dateint否交易日20260316YYYYMMDD;不传则使用当日(CST)

3. 响应说明

返回单条 ETF 盘前信息,结构与全量接口 etf-pre-data 的 items 中单条一致。

EtfPreItem 结构

字段名类型是否可为空说明单位
etf_symbol_idint否ETF 代码-
etf_market_idint否ETF 交易所编号-
creation_redemption_unitlong是最小申购、赎回单位份
max_cash_ratiofloat是现金替代比例上限-
publish_ipovint否是否需要公布 IOPV:1=需要公布-
creation_redemption_flagint否申购赎回允许情况:1=允许申购 2=允许赎回,通过 & 判断-
record_numint是成分股数量-
estimate_cash_componentfloat是最小申购、赎回单位的预估现金部分元
trade_dateint是交易日YYYYMMDD
cash_componentfloat是现金差额元
nav_per_cufloat是最小申购、赎回单位净值元
navfloat是基金份额净值元
member_market_typeint否成分股类型位掩码:1=上交所 2=深交所 4=港交所 8=北交所 16=外汇 32=其他-

响应示例

json
{
  "etf_symbol_id": 510300,
  "etf_market_id": 1,
  "creation_redemption_unit": 1000000,
  "max_cash_ratio": 0.15,
  "publish_ipov": 1,
  "creation_redemption_flag": 3,
  "record_num": 301,
  "estimate_cash_component": 12345.67,
  "trade_date": 20260316,
  "cash_component": 0.0,
  "nav_per_cu": 3.8921,
  "nav": 3.8921,
  "member_market_type": 1
}

4. 用法

通过主目录 run.py 调用(必填 --symbol,可选 --date):

bash
# 当日盘前(CST)
python <RUN_PY> etf-pre-single --symbol 510300.XSHG

# 指定交易日
python <RUN_PY> etf-pre-single --symbol 510300.XSHG --date 20260316

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。脚本输出 JSON;接口报错或未找到时,将接口返回的错误信息原样输出到 stderr 并退出码 1。

5. 请求示例

当日:

GET /api/v2/market/data/etf-pre-single?symbol=510300.XSHG

指定日期:

GET /api/v2/market/data/etf-pre-single?symbol=510300.XSHG&date=20260316

6. 数据更新时间与注意事项

  • 数据更新时间以接口/数据源为准;不传 date 时使用当日(CST)交易日。
  • 净值、现金差额等金额类字段以接口返回为准;展示时注意单位(元、份)。
  • creation_redemption_flag 为位掩码:1=允许申购,2=允许赎回,3 表示申购与赎回均允许。
  • 时段:盘前数据在交易日盘前时段更易返回成功;非盘前、周末、节假日或当日数据尚未就绪时,接口可能返回系统错误或空数据,属服务端行为而非脚本故障。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Etf Pre Single AI skill do?

查询单只 ETF 盘前数据。用户问某只 ETF 盘前、申购赎回单位、净值、现金差额、IOPV、510300 盘前时使用。

Why use Etf Pre Single on TypingMind?

Because you install it once and use it with any model. Etf Pre Single is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Etf Pre Single in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/FTShare-Lab/FTShare-skill/tree/main/ftshare-market-data/sub-skills/etf-pre-single. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Etf Pre Single?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Etf Pre Single?

As many as you like. As long as a model supports skills, you can use Etf Pre Single with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Etf Pre Single AI skill free?

Yes. It is published on GitHub by FTShare-Lab under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇