Yann Long

iFind http API

データ分析v1.0.0
作者:Yann Long更新日 2026-05-11ifind@clawhub_yannlong/ifind
競合分析

AlphaMoatによると、2026-09時点でiFind http APIのダウンロード数は1,574、スター数は1で、AIスキル全体5,078件中4,722位、データ分析では399件中371位です。

インストール数
141
ダウンロード数
1574
スター数
1
総合順位
#4,722
全体の上位 93% · データ分析の上位 93%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗30110312
SkillHub ↗14115741—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

市場、マクロ、ファンド、カレンダー、レポート、ポートフォリオ情報を扱います。リクエスト前にエンドポイント、権限範囲、refresh tokenの安全な保存を確認してください。認証情報を保護し、データの出典と時刻を確認し、個別の投資助言として扱わないでください。 Python の requests と承認済み refresh token が必要です。エンドポイントと対象範囲を確認し認証情報を保護します。

資料公開日 2026-10-29

できること

  • 金融・マクロデータを取得する
  • ファンド、カレンダー、レポート情報を調べる
  • ポートフォリオ関連データを整理する

使う場面

  • ローカルのiFinD HTTPラッパーを再利用するとき
  • API呼び出し前に許可とトークン保存を確認し、結果利用時に出典と時刻を検証するとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

iFinDの検索機能と、API呼び出し前・結果利用時の確認事項を説明してください。

月次の推移

ダウンロード数1574
22394916742026-03 · ダウンロード数 3232026-05 · ダウンロード数 6862026-07 · ダウンロード数 10082026-08 · ダウンロード数 11622026-09 · ダウンロード数 157426-0326-09
スター数1
0122026-03 · スター数 12026-05 · スター数 12026-07 · スター数 12026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。 同名の別スキルがあるため、変更前のデータは現在ダウンロード数が最も多いこのスキルに帰属させています。

月ダウンロード数前月比スター数
2026-091574—1
2026-081162+15.3%1
2026-071008—1
2026-05686—1
2026-03323—1

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.6 KB・ClawHub v1.0.0
---
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`.
すべて表示(全 130 行)
## 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

データ分析の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。