据 AlphaMoat 统计,截至 2026-09,iFind http API 累计下载 1,574 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 4,722 位,在「数据分析」分类(399 个)中排名第 371 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 30 | 1,103 | 1 | 2 |
| SkillHub ↗ | 141 | 1,574 | 1 | — |
各平台的计数口径不同,统计时间不一致。
接口覆盖行情、宏观、基金、日历、报告和组合等信息。请求前应核验 API 端点、权限范围及 refresh token 的安全存储;保护令牌,并对数据来源和时间戳进行复核,避免将结果当作个性化投资建议。 需要 Python requests 和已授权 refresh token;核对接口及查询范围,避免泄露凭据。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 1,574 | — | 1 |
| 2026-08 | 1,162 | +15.3% | 1 |
| 2026-07 | 1,008 | — | 1 |
| 2026-05 | 686 | — | 1 |
| 2026-03 | 323 | — | 1 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: ifind description: | Use a local Python wrapper around the official iFinD QuantAPI HTTP endpoints on quantapi.51ifind.com. Use when the user wants iFinD market, macro, fund, code-conversion, calendar, report, or portfolio data through HTTP without downloading third-party binaries. This skill is especially appropriate when a local `ifind_api.py` wrapper or custom iFinD HTTP integration should be reused, and when refresh_token acquisition and secure local storage must be checked before any API call. --- # iFinD Use this skill to query iFinD via the local Python wrapper in `scripts/ifind_api.py`.
## Environment preparation
Before first use, verify Python dependencies.
Required runtime dependency:
- `requests`
A pinned dependency file is provided at `scripts/requirements.txt`.
Check quickly with:
```bash
python3 -c "import requests; print(requests.__version__)"
```
If missing, install it before running any API script:
```bash
python3 -m pip install -r scripts/requirements.txt
```
If the environment is externally managed, prefer a virtual environment, but installing `requests` is allowed for this skill when needed.
## First rule: confirm refresh_token before querying
Before any data call:
1. Check token status with:
`python3 scripts/ifind_token_store.py status`
2. If missing, prefer letting the agent obtain it directly from the official site:
- open `https://quantapi.51ifind.com`
- log in with the user's existing session, or ask the user to complete login if interactive approval is needed
- go to the account information page
- locate the `refresh_token`
3. Store it only through:
`python3 scripts/ifind_token_store.py set --token '<TOKEN>'`
4. Only fall back to asking the user to provide the token if the browser path is unavailable or login cannot be completed.
Never ask the user to paste shell commands that would echo the token back into chat. Never print the token after storing it.
## Preferred token acquisition workflow
Prefer this order:
1. Browser login to `https://quantapi.51ifind.com` and read the token from account information
2. iFinD 超级命令客户端 → 工具 → `refresh_token` 查询
3. Ask the user directly only as a fallback
If browser automation is used, keep the flow minimal and do not browse unrelated pages. Once the token is found, store it immediately and stop exposing it in further output.
## Token storage policy
- Storage path: `~/.openclaw/skills/ifind/credentials.json`
- File permission target: owner read/write only (`600` on POSIX)
- The store script writes the file and tightens permissions automatically.
- The request script reads the refresh_token from that file unless `IFIND_REFRESH_TOKEN` is already present in the environment.
- Prefer the stored token over hardcoding tokens into code or notes.
## Quick workflow
### 1. Verify dependencies and token state
Run:
```bash
python3 -c "import requests; print(requests.__version__)"
python3 scripts/ifind_token_store.py status
```
If `requests` is missing, install it first:
```bash
python3 -m pip install -r scripts/requirements.txt
```
If the token is missing, obtain it through the preferred browser workflow and store it first.
### 2. Choose a calling path
- For direct endpoint calls, use `scripts/ifind_request.py endpoint`
- For common market-data work, use `scripts/ifind_request.py preset`
- For Python integration or patching, read `scripts/ifind_api.py`
- For endpoint details and payload shape, read `references/iFind_API_Reference.md`
### 3. Run the query
Examples:
```bash
python3 scripts/ifind_request.py preset realtime \
--codes '300033.SZ,600000.SH' \
--indicators 'open,high,low,latest,changeRatio,volume,amount'
python3 scripts/ifind_request.py preset ohlcv \
--codes '000300.SH' \
--startdate '2025-01-01' \
--enddate '2025-03-01'
python3 scripts/ifind_request.py endpoint get_thscode \
--payload '{"seccode":"300033","functionpara":{"mode":"seccode","sectype":"","market":"","tradestatus":"0","isexact":"0"}}'
```
## Output discipline
When using returned data in analysis:
- state the endpoint used
- include the symbol universe / code list
- include the requested date range or timestamp
- include the returned `perf`, `dataVol`, or other useful metadata when relevant
- if the API returns an error, surface the error code and message rather than guessing
## References
- `references/iFind_API_Reference.md`: local API wrapper reference and examples from the user
- `references/token-and-storage.md`: refresh_token acquisition and storage procedure
- `scripts/ifind_api.py`: local Python wrapper
- `scripts/ifind_request.py`: CLI for endpoint/preset calls
- `scripts/ifind_token_store.py`: token status/set/remove helper
AdMapix 的取数层:把广告与应用相关的查询转成接口调用,只回原始 JSON。
走 Tavily 检索公开网页,返回带链接与摘要的结构化结果。
把数据库、表格与导出的原始数据变成可决策结论的数据分析技能。
用 Yahoo Finance 数据做股票与加密货币分析、组合跟踪的技能。
管理本地自选股清单,并按代码汇总同花顺行情与近期表现的技能。
知了标讯:查询和分析招标、中标、供应商与采购市场信息。
用命令行监控博客与 RSS/Atom 源的更新。
汇总 Codex 或 Claude 按模型计费的使用成本。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。