sinabs

China iFinD Skill(同花顺Skill)

Professionalv1.0.1
By sinabsUpdated 2026-05-112 versions · latest released 2026-03-16ifind-api@clawhub_sinabs/ifind-api
Finance#接口#财务#金融

According to AlphaMoat, as of 2026-09, China iFinD Skill(同花顺Skill) has 4,731 downloads and 3 stars — ranked #1,999 of 5,078 AI skills overall, and #170 of 465 in Professional.

Installs
455
Downloads
4.7K
Stars
3
Overall Rank
#1,999
Top 40% overall · Top 37% in Professional
PlatformInstallsDownloadsStarsComments
ClawHub ↗501.8K1-
SkillHub ↗4554.7K3—

Platforms count differently and update at different times.

What this skill does

It covers quotes, financial indicators, valuations, trading calendars and announcements across stocks, funds, bonds, futures and indices. Configure the user’s IFIND_REFRESH_TOKEN; access tokens are cached locally and refreshed for a retry when expired, and calls are logged locally. Without a token, it stops and requests configuration.

Profile published 2026-10-27

What you can do with it

  • Retrieve historical quotes, fundamentals or macroeconomic indicators

When to use it

  • When iFinD access is available and financial data is needed through its API

Example prompts

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

Check that the token is configured, then query the target security’s historical quotes and explain the returned fields and data scope.

Monthly Trend

Downloads4.7K
3982.7K5.1K2026-03 · Downloads 7192026-05 · Downloads 1.3K2026-06 · Downloads 1.7K2026-07 · Downloads 2.2K2026-08 · Downloads 3.0K2026-09 · Downloads 4.7K26-0326-09
Stars3
0232026-03 · Stars -2026-05 · Stars 12026-06 · Stars 12026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-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-094.7K—3
2026-083.0K+37.6%3
2026-072.2K+28.6%3
2026-061.7K+26.7%1
2026-051.3K—1
2026-03719—-

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.

3.5 KB · ClawHub v1.0.1
---
name: china-ifind
description: |
  同花顺 iFinD (51ifind.com) 金融数据查询。支持 A 股/基金/债券/期货/指数的实时行情、历史行情、财务指标、宏观经济数据等 18 个 API 接口。
  Chinese financial data query skill powered by THS iFinD (51ifind.com) API. Covers real-time quotes, historical data, financial indicators, macro economics, fund valuation, and more across 18 API endpoints for A-shares, funds, bonds, futures, and indices.
metadata:
  author: sinabs
  version: "1.0.0"
  openclaw:
    requires:
Show all (66 lines)
      env:
        - IFIND_REFRESH_TOKEN
---

# iFinD 金融数据查询

基于同花顺 iFinD ([51ifind.com](https://www.51ifind.com)) 量化数据接口,覆盖 A 股、基金、债券、期货、指数等全品类金融数据。

## 运行机制

1. **Token 获取**:使用用户提供的 `IFIND_REFRESH_TOKEN` 向 iFinD 官方 API 获取 `access_token`,缓存在本地 `.data/access_token`(24 小时 TTL)。
2. **API 调用**:携带 `access_token` 调用 `quantapi.51ifind.com` 量化数据接口,返回 JSON 结果。
3. **自动重试**:当 token 过期(errorcode -1302)时自动刷新并重试一次。
4. **日志**:调用记录写入 `.data/ifind.log`(滚动日志,1MB 上限)。

本脚本仅与 iFinD 官方 API(`quantapi.51ifind.com`)通信,不连接任何第三方服务。

## 支持的 API

| # | API | Endpoint | 用途 |
|---|-----|----------|------|
| 1 | 基础数据 | `basic_data_service` | 财务指标、基本面数据 |
| 2 | 日期序列 | `date_sequence` | 按时间序列获取指标数据 |
| 3 | 历史行情 | `cmd_history_quotation` | 日K/周K等历史行情 |
| 4 | 高频序列 | `high_frequency` | 分钟级高频数据 + 技术指标 |
| 5 | 实时行情 | `real_time_quotation` | 最新价、涨跌幅、成交量 |
| 6 | 日内快照 | `snap_shot` | 逐笔/分钟级日内盘口快照 |
| 7 | 经济数据库 | `edb_service` | 宏观经济指标 (GDP、CPI 等) |
| 8 | 专题报表 | `data_pool` | REITs、龙虎榜等专题数据 |
| 9 | 组合管理 | `portfolio_manage` | 组合新建/导入/交易/监控 |
| 10 | 智能选股 | `smart_stock_picking` | 按条件筛选股票 |
| 11 | 基金估值(分钟) | `fund_valuation` | 基金实时分钟级估值 |
| 12 | 基金估值(日) | `final_fund_valuation` | 基金日终估值 |
| 13 | 日期查询 | `get_trade_dates` | 查询交易日历 |
| 14 | 日期偏移 | `get_trade_dates` | 基于基准日前推/后推 |
| 15 | 数据量查询 | `get_data_volume` | 查询账号已用数据量 |
| 16 | 错误信息查询 | `get_error_message` | 查询错误码含义 |
| 17 | 代码转换 | `get_thscode` | 证券代码转同花顺代码 |
| 18 | 公告查询 | `report_query` | 上市公司公告检索下载 |

## 首次使用

每次调用 API 前,先按 [API_REFERENCE.md](references/API_REFERENCE.md) 中「Token 配置」章节检查并配置 `IFIND_REFRESH_TOKEN`。

如果未配置,**停止执行**,向用户提示:

> 使用 iFinD 金融数据查询需要你的 refresh_token。获取方式:
> - **还没有账号**:访问 https://ft.10jqka.com.cn 申请 iFinD 量化数据终端
> - **已有账号**:打开 iFinD 超级命令客户端 → 工具 → refresh_token 查询;或登录 https://quantapi.51ifind.com 在账号信息中查看
>
> 请把你的 refresh_token 发给我,我帮你配置好。

## 参考资料

- [API_REFERENCE.md](references/API_REFERENCE.md) - Token 配置、调用方式、18 个 API 完整参数和示例

Popular in Professional

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