china-ifind

同花顺 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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "china-ifind" with this command: npx skills add sinabs/ifind-api

iFinD 金融数据查询

基于同花顺 iFinD (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

#APIEndpoint用途
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_poolREITs、龙虎榜等专题数据
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 中「Token 配置」章节检查并配置 IFIND_REFRESH_TOKEN

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

使用 iFinD 金融数据查询需要你的 refresh_token。获取方式:

请把你的 refresh_token 发给我,我帮你配置好。

参考资料

  • API_REFERENCE.md - Token 配置、调用方式、18 个 API 完整参数和示例

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Content Refresher

Use when updating outdated content, fixing traffic/ranking decay, refreshing stats, adding new sections, or improving freshness signals. 内容更新/排名恢复

Registry SourceRecently Updated
General

AssemblyAI Transcriber

Transcribe audio files with speaker diarization (who speaks when). Supports 100+ languages, automatic language detection, and timestamps. Use for meetings, interviews, podcasts, or voice messages. Requires AssemblyAI API key.

Registry SourceRecently Updated
General

mac-node-snapshot

A robust, permission-friendly method to capture macOS screens via OpenClaw screen.record. Ideal for headless environments or ensuring capture reliability.

Registry SourceRecently Updated
1.4K0taozhe6
General

Amazon Asin Lookup Api Skill

This skill helps users extract structured product details from Amazon using a specific ASIN (Amazon Standard Identification Number). Use this skill when the...

Registry SourceRecently Updated
1.3K1phheng