ねこさん

Financial data fetcher

Professionalv1.0.0
By ねこさんUpdated 2026-05-11financial-data-fetcher@clawhub_sparkmao/financial-data-fetcher
Finance#Financial#接口#股票#财务#金融

According to AlphaMoat, as of 2026-09, Financial data fetcher has 1,626 downloads and 1 stars — ranked #4,685 of 5,078 AI skills overall, and #422 of 465 in Professional.

Installs
169
Downloads
1.6K
Stars
1
Overall Rank
#4,685
Top 93% overall · Top 91% in Professional
PlatformInstallsDownloadsStarsComments
ClawHub ↗241.0K--
SkillHub ↗1691.6K1—

Platforms count differently and update at different times.

What this skill does

With the TongdaXin financial terminal TQ edition, the scripts can retrieve stock quotes, financial fields, sector and market data, and information about IPOs, dividends, ETFs, and convertible bonds. The tool also covers subscriptions, cache refreshes, and downloads. A local TQ terminal must be installed, running, and enabled. The security review warns this integration may be write-capable and expose trading or destructive client actions, so do not treat it as read-only; restrict operations and require review before execution. Requires Python with numpy and pandas and the documented PYTHONPATH setup, in addition to the running TQ terminal.

Profile published 2026-10-27

What you can do with it

  • Query stock quotes or financial fields
  • Retrieve sector, market, ETF, or bond information
  • Manage data subscriptions or downloads in a controlled environment

When to use it

  • When the local TongdaXin TQ terminal is installed and enabled and the user requests related financial data
  • Avoid a logged-in trading account; separately review trading, deletion, clearing, refresh, and file-export actions

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Query only the quote or financial fields I specify; explain the TQ operation first, avoid trades, deletion, or file exports, and wait for my confirmation before running it.

Monthly Trend

Downloads1.6K
1939631.7K2026-03 · Downloads 2992026-05 · Downloads 6812026-07 · Downloads 9712026-08 · Downloads 1.1K2026-09 · Downloads 1.6K26-0326-09
Stars1
0112026-03 · Stars -2026-05 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-091.6K—1
2026-081.1K+17.8%1
2026-07971—1
2026-05681—1
2026-03299—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

5.1 KB · ClawHub v1.0.0
---
name: financial-data-fetcher
description: 一个基于通达信 TQ 策略接口的金融数据获取工具,提供多种API脚本用于获取股票行情、财务数据、板块信息等。
---

# TongdaXin Financial Data Fetcher

## Description

一个基于通达信 TQ 策略接口的金融数据获取工具,提供多种API脚本用于获取股票行情、财务数据、板块信息等。
Show all (292 lines)

## Triggers

当用户请求获取金融数据时自动触发,例如:
- "获取K线数据"
- "查询股票快照"
- "获取专业财务数据"
- "获取板块交易数据"
- "查询新股申购信息"
- 任何与股票行情、财务数据、市场信息相关的请求

## Commands

### 行情数据

```
/get_market_data --stock_list 688318.SH --period 1d --count 1
```
获取K线行情数据

```
/get_market_snapshot --stock_code 688318.SH
```
获取快照数据

```
/get_stock_info --stock_code 688318.SH --field_list Name Unit
```
获取证券基本信息

```
/get_more_info --stock_code 688318.SH
```
获取股票更多信息

```
/get_trading_dates --market SH --count 10
```
获取交易日列表

### 财务数据

```
/get_financial_data --stock_list 688318.SH --field_list FN193 FN194
```
获取专业财务数据

```
/get_financial_data_by_date --stock_list 688318.SH --field_list FN193 --year 2025
```
获取指定日期专业财务数据

```
/get_gpjy_value --stock_list 688318.SH --field_list GP1 GP2
```
获取股票交易数据

```
/get_gpjy_value_by_date --stock_list 688318.SH --field_list GP1 --year 2025
```
获取指定日期股票交易数据

```
/get_gp_one_data --stock_list 688318.SH --field_list GO1 GO2
```
获取股票的单个财务数据

### 板块数据

```
/get_stock_list --market 16
```
获取系统分类成份股

```
/get_sector_list
```
获取A股板块代码列表

```
/get_stock_list_in_sector --block_code 880081.SH
```
获取板块成份股

```
/get_bkjy_value --stock_list 880660.SH --field_list BK5 BK6
```
获取板块交易数据

```
/get_bkjy_value_by_date --stock_list 880660.SH --field_list BK9 --year 2025
```
获取指定日期板块交易数据

### 市场数据

```
/get_scjy_value --field_list SC1 SC2
```
获取市场交易数据

```
/get_scjy_value_by_date --field_list SC6 SC7 --year 2025
```
获取指定日期市场交易数据

### 新股与分红

```
/get_ipo_info --ipo_type 2 --ipo_date 1
```
获取新股申购信息

```
/get_divid_factors --stock_code 688318.SH
```
获取分红配送数据

```
/get_gb_info --stock_code 688318.SH --date_list 20250101 20250601 --count 2
```
获取股本数据

### 自定义板块

```
/get_user_sector
```
获取自定义板块列表

```
/create_sector --block_code TEST --block_name 测试板块
```
创建自定义板块

```
/delete_sector --block_code TEST
```
删除自定义板块

```
/rename_sector --block_code TEST --block_name 新名称
```
重命名自定义板块

```
/send_user_block --block_code TEST --stocks 600000.SH 600004.SH
```
添加自定义板块成份股

```
/clear_sector --block_code TEST
```
清空自定义板块成份股

### ETF与可转债

```
/get_trackzs_etf_info --zs_code 950162.CSI
```
获取跟踪指数的ETF信息

```
/get_cb_info --stock_code 123039.SZ
```
获取可转债基础信息

### 行情订阅

```
/subscribe_hq --stock_list 688318.SH
```
订阅行情

```
/unsubscribe_hq --stock_list 688318.SH
```
取消订阅更新

```
/get_subscribe_hq_stock_list
```
获取订阅列表

### 数据刷新

```
/refresh_cache --market AG --force
```
刷新行情缓存

```
/refresh_kline --stock_list 688318.SH --period 1d
```
刷新历史K线缓存

### 数据下载

```
/download_file --stock_code 688318.SH --down_time 20241231 --down_type 1
```
下载特定数据文件

## Prerequisites

使用本工具前需要满足以下条件:

### 1. 安装 Python 依赖包

```bash
pip install numpy pandas
```

### 2. 安装通达信金融终端TQ版

- 需要安装 **通达信金融终端TQ版** 并确保其正常运行
- 本工具依赖 TQ 策略接口与通达信客户端进行数据交互
- 确保 TQ 策略功能已启用

## Usage

运行脚本前需要设置 PYTHONPATH:

```bash
# Unix/Linux/Mac
export PYTHONPATH=/path/to/project

# Windows (CMD)
set PYTHONPATH=C:\path\to\project

# Windows (PowerShell)
$env:PYTHONPATH = "C:\path\to\project"

# 运行脚本
python scripts/get_market_data.py --stock_list 688318.SH --period 1d
```

或者使用 -m 方式运行:

```bash
cd /path/to/project
python -m scripts.get_market_data --stock_list 688318.SH --period 1d
```

## Enum Values

### period (周期)
- `1m` - 1分钟
- `5m` - 5分钟
- `15m` - 15分钟
- `30m` - 30分钟
- `1h` - 60分钟(1小时)
- `1d` - 1天
- `1w` - 1周
- `1mon` - 1月
- `1q` - 1季
- `1y` - 1年
- `tick` - 分笔

### dividend_type (复权类型)
- `none` - 不复权
- `front` - 前复权
- `back` - 后复权

### market (市场)
- `AG` - A股
- `HK` - 港股
- `US` - 美股
- `QH` - 国内期货
- `QQ` - 股票期权
- `NQ` - 新三板
- `ZZ` - 中证和国证指数
- `ZS` - 沪深京指数

### ipo_type
- `0` - 新股申购信息
- `1` - 新发债信息
- `2` - 新股和新发债信息

### ipo_date
- `0` - 只获取今天信息
- `1` - 获取今天及以后信息

Popular in Professional

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.