[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9QBD2YKFGGD93YVVAR9Z6":3,"skill-same:01M7B9QBD2YKFGGD93YVVAR9Z6":179},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7B9QBD2YKFGGD93YVVAR9Z6","koinju",null,"Use this skill for any query mentioning Koinju (koinju.io, api.koinju.io, docs.koinju.io, mcp koinju) — getting credentials, connecting, querying, integrating, or optimizing the Koinju API. Also use when the user wants crypto market data without naming Koinju: historical OHLCV\u002Fcandles, tick trades, funding rates, option chains, implied volatility, vol smile, IV surface, DVOL — across 13 exchanges, among them Binance, Bybit, OKX, Deribit, Coinbase and Kraken. Covers backtesting strategies on crypto price history, quant research, and enriching existing ClickHouse\u002FPostgres\u002FRedis stores with crypto data. Do NOT use for stock\u002Fequity markets or for general ClickHouse architecture questions unrelated to Koinju.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: koinju\ndescription: >-\n  Use this skill for any query mentioning Koinju (koinju.io, api.koinju.io,\n  docs.koinju.io, mcp koinju) — getting credentials, connecting, querying, integrating, or\n  optimizing the Koinju API. Also use when the user wants crypto market data\n  without naming Koinju: historical OHLCV\u002Fcandles, tick trades, funding rates,\n  option chains, implied volatility, vol smile, IV surface, DVOL — across\n  13 exchanges, among them Binance, Bybit, OKX, Deribit, Coinbase and Kraken. Covers\n  backtesting strategies on crypto price history, quant research, and\n  enriching existing ClickHouse\u002FPostgres\u002FRedis stores with crypto data. Do\n  NOT use for stock\u002Fequity markets or for general ClickHouse architecture\n  questions unrelated to Koinju.\nmetadata:\n  author: Dmitry Prokofyev\n  version: \"0.9.4\"\n  homepage: https:\u002F\u002Fdocs.koinju.io\n---\n\n# Koinju API Skill\n\nHelp users discover, query, and integrate Koinju's multi-exchange crypto market data into research, backtesting, or production pipelines.\n\n## Quick start (fast-path)\n\nMost \"test the API\" sessions need only this. Read the Workflow below for nuance.\n\n- **Set up a project**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fsetup.sh [target-dir]` — auto-detects cwd-empty \u002F uv \u002F venv, scaffolds + installs deps + seeds `main.py` and `.koinju.env`, idempotent. Without `[target-dir]`: cwd if empty (ignoring `.git`), else `.\u002Fkoinju-demo\u002F`.\n- **Probe state**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` — one line like `uv:ok pyproject:found venv:active deps:ok creds:ok project_env:found home_env:found suggest_save_global:no`. Use this before deciding to bootstrap, instead of running 4 separate `command -v` \u002F `python -c import` \u002F `[ -n $VAR ]` probes. If the trailing token is `suggest_save_global:yes` (project `.koinju.env` populated, but no `~\u002F.koinju.env`), propose copying — see [Workflow step 5](#workflow).\n- **Verify schema**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-schema.sh [table]` — dumps live `api.*` tables and columns. Run before writing SQL against any table you haven't used this session. Note: `DESCRIBE` (what it uses) returns empty for parameterized views like `api.ohlcv` — that's \"parameterized view\", not \"missing\"; the script falls back to `SHOW CREATE` and prints the `{param:Type}` signature.\n- **Get credentials**: https:\u002F\u002Fkoinju.io\u002Fpricing → sign up → check email for the dataroom link. The credential template lives at `references\u002Fkoinju.env.example` (the bootstrap copies it).\n- **No credentials**: the free demo database holds one validated UTC day, 18 October 2026 (`2026-10-18`), and needs none (host `sn7u7x3woz.eu-central-1.aws.clickhouse.cloud`, port 8443, user `demo`, empty password, database `api`). See `references\u002Fauth.md`; docs: https:\u002F\u002Fdocs.koinju.io\u002Ffree-demo-database\n- **Public REST** (no auth — market \u002F product \u002F instrument discovery): `curl -s 'https:\u002F\u002Fapi.koinju.io\u002Fmarket\u002Fspot' | jq '[.[] | select(.base == \"BTC\")]'`. See `references\u002Frest.md`.\n- **MCP server** : `claude mcp add --transport http koinju https:\u002F\u002Fmcp.koinju.io\u002Fmcp`, then `\u002Fmcp` to sign in with the Koinju account (no API key in the config), gives nine read-only tools. Seven sit over the REST endpoints — `get_ohlcv`, `get_trades`, `get_funding_rate`, `get_volatility_index`, `get_option_chain`, `get_option_smile`, `get_option_matrix` — spending the account's own API key and REST quota. `find_markets` reads the public market lists with no key, so it spends no quota: call it first, it returns the exact `exchange` and `market_symbol` the data tools want. `run_sql` runs one ClickHouse statement with the account's own SQL login, so the same tables, time limit and daily quota as direct SQL; an answer over 100,000 characters is refused, not cut. Bulk history belongs in SQL. Docs: https:\u002F\u002Fdocs.koinju.io\u002Fmcp-server\n- **Migration**: legacy `KOINJU_HOST` \u002F `KOINJU_USER` \u002F `KOINJU_PASSWORD` → current `KOINJU_DB_HOST` \u002F `KOINJU_DB_USER` \u002F `KOINJU_DB_PASSWORD` (and `KOINJU_API_KEY` is new). See [Migration](#migration-legacy-env-var-names) below for the one-liner.\n\n## Workflow\n\n1. **Capture intent.** Identify the data class the user needs:\n   - candles \u002F OHLCV \u002F historical price → `api.ohlcv` (parameterized), `api.ohlcv_1m`, `api.ohlcv_1h` (no `_1d` view)\n   - tick trades → `api.trade`\n   - funding rates (perpetual) → `api.funding_rate` (time column is `timestamp`, not `funding_timestamp`)\n   - option chain \u002F Greeks \u002F IV \u002F smile \u002F DVOL → all via `api.option_chains` (**plural**; there's no `api.option_smile` or `api.volatility_index`)\n   - exchange or market coverage → `api.market_spot` \u002F `_future` \u002F `_option` (or REST `\u002Fmarket\u002F*`)\n\n   **Before writing any SQL against a table you haven't queried this session, run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-schema.sh [table]` to verify columns.** The bundled refs drift; the live schema is the source of truth — but mind the lens: `probe-schema.sh` uses `DESCRIBE`, which returns **empty for parameterized views like `api.ohlcv`**. An empty or error probe means \"parameterized view\", **not** \"table is gone.\" Confirm with `SHOW CREATE TABLE api.ohlcv`, a `DESCRIBE (SELECT * FROM api.ohlcv(candle_duration_in_minutes = 1440) LIMIT 0)`, or just run the SELECT. (The bundled `probe-schema.sh` already does the `SHOW CREATE` fallback and prints the `{param:Type}` signature for you.)\n\n2. **Choose interface.**\n   - **Public REST `\u002Fmarket\u002F*`** — **always use this for any market \u002F product \u002F instrument discovery question** (\"what BTC pairs \u002F futures \u002F options exist?\", \"which exchanges list X?\", \"list all spot pairs\"). No auth, no Python deps, just `curl` + `jq`. Don't fall back to SQL for plain listings. See `references\u002Frest.md`.\n   - **Authenticated REST** (`\u002Fohlcv`, `\u002Ftrade`, `\u002Ffunding-rate`, `\u002Fvolatility-index`, `\u002Fstats`) — small data pulls, simple HTTP, supports free tier; needs `x-api-key`.\n   - **ClickHouse SQL** via `clickhouse-connect` (Python), `clickhouse-rs` (Rust), `clickhouse-go` (Go), or BI tools — heavy analytics, joins, custom aggregations, parameterized candle durations; needs host + username + password.\n\n3. **Auth check.** The bundled scripts and `load_koinju_credentials()` **auto-source `.koinju.env` (project-local, in cwd) then `~\u002F.koinju.env` (global)** — project-local wins per-var; existing env vars still win over both. A user running scripts from inside `koinju-demo\u002F` (with a populated project `.koinju.env`) gets their credentials picked up automatically. When writing ad-hoc Python, copy the `_autosource_koinju_env()` helper from `references\u002Fauth.md`. From a shell, source both explicitly:\n\n   ```bash\n   [ -f .koinju.env ] && source .koinju.env\n   [ -f ~\u002F.koinju.env ] && source ~\u002F.koinju.env\n   : \"${KOINJU_API_KEY:?}\" \"${KOINJU_DB_HOST:?}\" \"${KOINJU_DB_USER:?}\" \"${KOINJU_DB_PASSWORD:?}\"\n   ```\n\n   `KOINJU_DB_PORT` (default `8443`) and `KOINJU_DB_DATABASE` (default `api`) are optional.\n\n   If any required var is missing: the cleanest response is to propose the **Project setup\n   & dependency bootstrap** flow below — it scaffolds the project, creates a `.koinju.env`\n   (project-local, auto-loaded by the scripts), and walks through getting credentials in\n   one motion (and bundles dep install too, in case `clickhouse_connect` is also missing).\n   **No credentials, and a task that one day of data answers?** Use the free demo database: see `references\u002Fauth.md`.\n   For the credential-acquisition steps alone:\n   **Don't yet have them?** Pick a plan at **https:\u002F\u002Fkoinju.io\u002Fpricing** — after sign-up\n   Koinju emails you a link to **https:\u002F\u002Fdataroom.koinju.io\u002F** where the REST key and\n   ClickHouse host \u002F user \u002F password live. **Already signed up but no email \u002F can't access\n   the dataroom?** Fall back to **support@koinju.io**. Then have them `export` the\n   variables in their shell profile (or a sourced `~\u002F.koinju.env` with `chmod 600`). See\n   `references\u002Fauth.md` for full details.\n\n4. **Write the query.** Reach for the right reference:\n   - **Market \u002F product \u002F instrument discovery** (\"what BTC pairs exist?\", \"which options are listed?\") → public `\u002Fmarket\u002F*` endpoints in [`references\u002Frest.md`](references\u002Frest.md). No auth, no SQL. Never reach for `api.spot_markets` \u002F `api.future_markets` \u002F `api.option_markets` for a plain listing.\n   - [`references\u002Fdata-tables.md`](references\u002Fdata-tables.md) — table schemas, latest-value patterns (analytics, not discovery)\n   - [`references\u002Foptimization.md`](references\u002Foptimization.md) — query perf for trade \u002F year-long ohlcv\n   - [`references\u002Fbacktesting.md`](references\u002Fbacktesting.md) — strategy vs buy-and-hold workflow\n   - [`references\u002Fplotting.md`](references\u002Fplotting.md) — option smile, vol surface, candlestick, DVOL, equity curve\n   - [`references\u002Foption_iv_greeks.md`](references\u002Foption_iv_greeks.md) — recompute Deribit option IV + Greeks (Black-76 on the forward) from premiums; verified against `mark_iv` \u002F chain Greeks; deep history via the `deribit-option` \u002F `deribit-future` trade tapes\n   - [`references\u002Fintegrations.md`](references\u002Fintegrations.md) — Postgres \u002F ClickHouse \u002F Redis plug-in patterns\n   - [`references\u002Frest.md`](references\u002Frest.md) — REST endpoints (discovery + authed quick lookups). Autogenerated endpoint catalog at the bottom is the canonical reference for paths \u002F params \u002F return shapes.\n   - [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F) — 11 CI-validated cookbook recipes (Bollinger, Sortino, max drawdown, mean-reversion z-score, historical volatility, DCA vs lump-sum, perp funding, spot\u002Fperp spreads, cross-exchange arbitrage, OHLCV streaming, correlation). **Reach here before reinventing a metric** — each pairs the Python implementation with the SQL equivalent and a parity test.\n\n5. **Execute & verify.** Run the query, validate the result shape, return to user.\n\n   **Default rendering: markdown tables.** When the result fits on screen (roughly ≤ 50 rows × ≤ 8 columns, no cell wider than ~40 chars), render it as a markdown table in your response — Claude Code renders these natively and they're the most scannable format. For DataFrames: `print(df.to_markdown(index=False))` (needs `tabulate` — bundled in the project-setup deps). For REST \u002F `jq` output: wrap in pandas first, or align text columns with `column -t -s$'\\t'`. For single scalars (\"current BTC volatility → 47.3%\"), state the value in prose with context, not a 1×1 table.\n\n   **Too large for a table:** don't dump. Show head\u002Ftail with a `... (N more rows)` indicator, summarize with counts\u002Faggregations, or save the full result to a file (`df.to_csv(\"out.csv\")`, `df.to_parquet(\"out.parquet\")`) and tell the user the path.\n\n   **After the first successful run in a project**, run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` and check the trailing token. If it ends in `suggest_save_global:yes` (project `.koinju.env` populated and working, no `~\u002F.koinju.env`), propose:\n\n   > \"Your project `.koinju.env` works. Want me to copy it to `~\u002F.koinju.env` so future Claude sessions in other projects pick up the same credentials automatically?\"\n\n   On yes: `cp .koinju.env ~\u002F.koinju.env && chmod 600 ~\u002F.koinju.env`. On no: drop it; don't ask again in the same session. The bundled helpers auto-source both files (project wins per-var), so the global copy doesn't conflict with future per-project overrides.\n\n## Project setup & dependency bootstrap\n\n**Default: run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fsetup.sh [target-dir]`.** It probes cwd (empty → in-place, else `.\u002Fkoinju-demo\u002F`), probes `uv`, runs `uv init` (or `python3 -m venv` fallback), installs `clickhouse-connect pandas plotly tabulate`, seeds `main.py` from the welcome script, creates `.koinju.env` from the bundled template (chmod 600), appends to `.gitignore`, prints the credential URL and run command. Idempotent.\n\n**Two triggers, same script:**\n\n- **Proactive** — user asks \"set up a python project for koinju\", \"scaffold a koinju starter\", \"create a project to call the API\", etc. Just run `setup.sh`; this IS the proposal.\n- **Reactive** — a SQL task fails with `ModuleNotFoundError` and\u002For `KOINJU_*` env vars are unset. **Stop**. Do NOT `pip install` in the current shell. Do NOT hunt for an alternative Python (`\u002Fusr\u002Fbin\u002Fpython3`, `python3.10`, ...) — that \"works\" by accident and confuses the user about which env runs their code. Don't fix one blocker and leave the other.\n\n  1. Probe with `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` — one line tells you uv \u002F venv \u002F deps \u002F creds \u002F env-file state.\n  2. Propose: *\"[Deps \u002F credentials \u002F both] aren't set up — I can scaffold a clean uv project at `.\u002Fkoinju-demo\u002F` that handles it: installs deps, creates a `.koinju.env` (auto-loaded by the scripts), points you at koinju.io\u002Fpricing for credentials. OK?\"*\n  3. If accepted → `setup.sh`. If declined → **print the code you would have run as a fenced block** plus a `koinju.io\u002Fpricing` pointer if creds were the missing piece.\n\nFor manual bootstrap (no script access, custom requirements, debugging), see [`references\u002Fbootstrap.md`](references\u002Fbootstrap.md) — full templates, variations (existing project, plotting starter), and the don'ts.\n\n## Migration: legacy env-var names\n\nA project using `KOINJU_HOST` \u002F `KOINJU_USER` \u002F `KOINJU_PASSWORD` (and no `KOINJU_API_KEY`) is on the **old** naming. Current names:\n\n| Legacy | Current |\n|---|---|\n| `KOINJU_HOST` | `KOINJU_DB_HOST` |\n| `KOINJU_USER` | `KOINJU_DB_USER` |\n| `KOINJU_PASSWORD` | `KOINJU_DB_PASSWORD` |\n| *(none)* | `KOINJU_API_KEY` *(new — required by REST endpoints and the unified `load_koinju_credentials()` helper)* |\n\nAlso: rename the file from `.env` \u002F `.env.example` to `.koinju.env` (project-local) or `~\u002F.koinju.env` (global), then `chmod 600`. The bundled scripts and `_autosource_koinju_env()` only look at `.koinju.env` — they don't auto-source `.env`.\n\nOne-liner to migrate an existing `.env`:\n\n```bash\nsed \\\n  -e 's\u002F^export KOINJU_HOST=\u002Fexport KOINJU_DB_HOST=\u002F' \\\n  -e 's\u002F^export KOINJU_USER=\u002Fexport KOINJU_DB_USER=\u002F' \\\n  -e 's\u002F^export KOINJU_PASSWORD=\u002Fexport KOINJU_DB_PASSWORD=\u002F' \\\n  .env > .koinju.env \\\n  && rm .env \\\n  && chmod 600 .koinju.env \\\n  && { grep -qxF '.koinju.env' .gitignore 2>\u002Fdev\u002Fnull || echo '.koinju.env' >> .gitignore; }\n```\n\n(Stream-rewrite form rather than `sed -i` — portable across GNU and BSD `sed` without the `-i ''` macOS quirk.)\n\nThen have the user add `export KOINJU_API_KEY=...` to `.koinju.env` (grab the REST key from `dataroom.koinju.io`).\n\n**Format reminder for `KOINJU_DB_HOST`**: bare hostname only (e.g. `abc123.koinju.io`). Strip any `https:\u002F\u002F` scheme, trailing `:8443` port, or trailing `\u002F` if the user copy\u002Fpasted the full dataroom URL — `clickhouse-connect` adds the scheme and port itself, and port is set via `KOINJU_DB_PORT` (default 8443).\n\n## Bundled resources\n\n- [`references\u002Fauth.md`](references\u002Fauth.md) — credential setup (`KOINJU_*` env vars, dataroom URL, support email, Python helper)\n- [`references\u002Fdata-tables.md`](references\u002Fdata-tables.md) — gotchas (`Decimal`, snapshot cadence, `mark_iv` in percent), per-table notes (`api.ohlcv`, `api.trade`, `api.funding_rate`, `api.option_chains`, `api.market_*`), and an autogenerated full-schema reference appendix regenerated from live `DESCRIBE`\n- [`references\u002Foptimization.md`](references\u002Foptimization.md) — query optimization rules for koinju tables + a worked LINK-USDT example\n- [`references\u002Fbacktesting.md`](references\u002Fbacktesting.md) — strategy vs buy-and-hold workflow, metrics, common pitfalls\n- [`references\u002Fplotting.md`](references\u002Fplotting.md) — Plotly recipes for option smile, vol surface, candlestick, DVOL, equity curves\n- [`references\u002Foption_iv_greeks.md`](references\u002Foption_iv_greeks.md) — recompute Deribit option IV + Greeks with Black-76 on the forward (`underlying_price`, not spot); one-query SQL solver (`erf` + `arrayFold`) verified against the chain; deep history from the `deribit-option` \u002F `deribit-future` trade tapes\n- [`references\u002Fintegrations.md`](references\u002Fintegrations.md) — Postgres \u002F ClickHouse (`remoteSecure()`, ETL) \u002F Redis caching patterns\n- [`references\u002Frest.md`](references\u002Frest.md) — discovery rule, BTC-product `jq` cookbook, per-tier rate limits, Python example, REST-vs-SQL decision — and an autogenerated endpoint catalog regenerated from `api\u002Fmarket-data.yaml`\n- [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F) — 11 CI-validated cookbook articles (Bollinger, Sortino, max drawdown, mean-reversion z-score, historical vol, DCA vs lump-sum, perp funding, spot\u002Fperp spreads, cross-exchange arbitrage, OHLCV streaming, correlation), each with a Python implementation, SQL equivalent, and parity test. Synced from `api\u002Fpython_vs_sql\u002F`.\n- [`references\u002Fbootstrap.md`](references\u002Fbootstrap.md) — fallback when `clickhouse_connect` is missing: propose a uv project (or print the code if declined); explicit \"don't pip install \u002F don't hunt alternative Pythons\" guidance\n- [`references\u002Fkoinju.env.example`](references\u002Fkoinju.env.example) — credential template (the bootstrap `cp`s this to `.koinju.env` and chmod 600s it)\n- [`scripts\u002Fsetup.sh`](scripts\u002Fsetup.sh) — one-shot bootstrap: cwd-probe, uv-or-venv, install deps, seed `main.py` + `.koinju.env` + `.gitignore`. Pass target dir as `$1`. Idempotent.\n- [`scripts\u002Fprobe-env.sh`](scripts\u002Fprobe-env.sh) — one-line state probe (`uv:ok pyproject:found venv:active deps:ok creds:ok ...`). Single tool call instead of multiple `command -v` \u002F `python -c import` \u002F `[ -n $VAR ]` invocations.\n- [`scripts\u002Fprobe-schema.sh`](scripts\u002Fprobe-schema.sh) — dumps live `api.*` tables + columns over the ClickHouse HTTPS interface. Run before writing SQL against an unfamiliar table; **live schema is the source of truth, not the bundled refs**.\n- [`scripts\u002Fwelcome_btc_usdt.py`](scripts\u002Fwelcome_btc_usdt.py) — runnable demo: 7d of BTC-USDT 1h candles via ClickHouse, Plotly candlestick (used as the seed `main.py` by `setup.sh`)\n- [`scripts\u002Fplot_option_smile.py`](scripts\u002Fplot_option_smile.py) — runnable: BTC option smile across two exchanges at the nearest expiration\n- [`scripts\u002Fbacktest_buy_and_hold.py`](scripts\u002Fbacktest_buy_and_hold.py) — runnable: SMA(20\u002F50) vs buy-and-hold on any market, reports total return \u002F Sharpe \u002F max drawdown\n\nDeeper SQL recipes ship inside the skill at [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F). The corresponding GitBook pages live at https:\u002F\u002Fdocs.koinju.io\u002Fsql-cookbook\u002F.\n\n> **Source of truth:** https:\u002F\u002Fdocs.koinju.io. Always prefer the live docs if there's a conflict with bundled references.","# Koinju API Skill\n\nHelp users discover, query, and integrate Koinju's multi-exchange crypto market data into research, backtesting, or production pipelines.\n\n## Quick start (fast-path)\n\nMost \"test the API\" sessions need only this. Read the Workflow below for nuance.\n\n- **Set up a project**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fsetup.sh [target-dir]` — auto-detects cwd-empty \u002F uv \u002F venv, scaffolds + installs deps + seeds `main.py` and `.koinju.env`, idempotent. Without `[target-dir]`: cwd if empty (ignoring `.git`), else `.\u002Fkoinju-demo\u002F`.\n- **Probe state**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` — one line like `uv:ok pyproject:found venv:active deps:ok creds:ok project_env:found home_env:found suggest_save_global:no`. Use this before deciding to bootstrap, instead of running 4 separate `command -v` \u002F `python -c import` \u002F `[ -n $VAR ]` probes. If the trailing token is `suggest_save_global:yes` (project `.koinju.env` populated, but no `~\u002F.koinju.env`), propose copying — see [Workflow step 5](#workflow).\n- **Verify schema**: `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-schema.sh [table]` — dumps live `api.*` tables and columns. Run before writing SQL against any table you haven't used this session. Note: `DESCRIBE` (what it uses) returns empty for parameterized views like `api.ohlcv` — that's \"parameterized view\", not \"missing\"; the script falls back to `SHOW CREATE` and prints the `{param:Type}` signature.\n- **Get credentials**: https:\u002F\u002Fkoinju.io\u002Fpricing → sign up → check email for the dataroom link. The credential template lives at `references\u002Fkoinju.env.example` (the bootstrap copies it).\n- **No credentials**: the free demo database holds one validated UTC day, 18 October 2026 (`2026-10-18`), and needs none (host `sn7u7x3woz.eu-central-1.aws.clickhouse.cloud`, port 8443, user `demo`, empty password, database `api`). See `references\u002Fauth.md`; docs: https:\u002F\u002Fdocs.koinju.io\u002Ffree-demo-database\n- **Public REST** (no auth — market \u002F product \u002F instrument discovery): `curl -s 'https:\u002F\u002Fapi.koinju.io\u002Fmarket\u002Fspot' | jq '[.[] | select(.base == \"BTC\")]'`. See `references\u002Frest.md`.\n- **MCP server** : `claude mcp add --transport http koinju https:\u002F\u002Fmcp.koinju.io\u002Fmcp`, then `\u002Fmcp` to sign in with the Koinju account (no API key in the config), gives nine read-only tools. Seven sit over the REST endpoints — `get_ohlcv`, `get_trades`, `get_funding_rate`, `get_volatility_index`, `get_option_chain`, `get_option_smile`, `get_option_matrix` — spending the account's own API key and REST quota. `find_markets` reads the public market lists with no key, so it spends no quota: call it first, it returns the exact `exchange` and `market_symbol` the data tools want. `run_sql` runs one ClickHouse statement with the account's own SQL login, so the same tables, time limit and daily quota as direct SQL; an answer over 100,000 characters is refused, not cut. Bulk history belongs in SQL. Docs: https:\u002F\u002Fdocs.koinju.io\u002Fmcp-server\n- **Migration**: legacy `KOINJU_HOST` \u002F `KOINJU_USER` \u002F `KOINJU_PASSWORD` → current `KOINJU_DB_HOST` \u002F `KOINJU_DB_USER` \u002F `KOINJU_DB_PASSWORD` (and `KOINJU_API_KEY` is new). See [Migration](#migration-legacy-env-var-names) below for the one-liner.\n\n## Workflow\n\n1. **Capture intent.** Identify the data class the user needs:\n   - candles \u002F OHLCV \u002F historical price → `api.ohlcv` (parameterized), `api.ohlcv_1m`, `api.ohlcv_1h` (no `_1d` view)\n   - tick trades → `api.trade`\n   - funding rates (perpetual) → `api.funding_rate` (time column is `timestamp`, not `funding_timestamp`)\n   - option chain \u002F Greeks \u002F IV \u002F smile \u002F DVOL → all via `api.option_chains` (**plural**; there's no `api.option_smile` or `api.volatility_index`)\n   - exchange or market coverage → `api.market_spot` \u002F `_future` \u002F `_option` (or REST `\u002Fmarket\u002F*`)\n\n   **Before writing any SQL against a table you haven't queried this session, run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-schema.sh [table]` to verify columns.** The bundled refs drift; the live schema is the source of truth — but mind the lens: `probe-schema.sh` uses `DESCRIBE`, which returns **empty for parameterized views like `api.ohlcv`**. An empty or error probe means \"parameterized view\", **not** \"table is gone.\" Confirm with `SHOW CREATE TABLE api.ohlcv`, a `DESCRIBE (SELECT * FROM api.ohlcv(candle_duration_in_minutes = 1440) LIMIT 0)`, or just run the SELECT. (The bundled `probe-schema.sh` already does the `SHOW CREATE` fallback and prints the `{param:Type}` signature for you.)\n\n2. **Choose interface.**\n   - **Public REST `\u002Fmarket\u002F*`** — **always use this for any market \u002F product \u002F instrument discovery question** (\"what BTC pairs \u002F futures \u002F options exist?\", \"which exchanges list X?\", \"list all spot pairs\"). No auth, no Python deps, just `curl` + `jq`. Don't fall back to SQL for plain listings. See `references\u002Frest.md`.\n   - **Authenticated REST** (`\u002Fohlcv`, `\u002Ftrade`, `\u002Ffunding-rate`, `\u002Fvolatility-index`, `\u002Fstats`) — small data pulls, simple HTTP, supports free tier; needs `x-api-key`.\n   - **ClickHouse SQL** via `clickhouse-connect` (Python), `clickhouse-rs` (Rust), `clickhouse-go` (Go), or BI tools — heavy analytics, joins, custom aggregations, parameterized candle durations; needs host + username + password.\n\n3. **Auth check.** The bundled scripts and `load_koinju_credentials()` **auto-source `.koinju.env` (project-local, in cwd) then `~\u002F.koinju.env` (global)** — project-local wins per-var; existing env vars still win over both. A user running scripts from inside `koinju-demo\u002F` (with a populated project `.koinju.env`) gets their credentials picked up automatically. When writing ad-hoc Python, copy the `_autosource_koinju_env()` helper from `references\u002Fauth.md`. From a shell, source both explicitly:\n\n   ```bash\n   [ -f .koinju.env ] && source .koinju.env\n   [ -f ~\u002F.koinju.env ] && source ~\u002F.koinju.env\n   : \"${KOINJU_API_KEY:?}\" \"${KOINJU_DB_HOST:?}\" \"${KOINJU_DB_USER:?}\" \"${KOINJU_DB_PASSWORD:?}\"\n   ```\n\n   `KOINJU_DB_PORT` (default `8443`) and `KOINJU_DB_DATABASE` (default `api`) are optional.\n\n   If any required var is missing: the cleanest response is to propose the **Project setup\n   & dependency bootstrap** flow below — it scaffolds the project, creates a `.koinju.env`\n   (project-local, auto-loaded by the scripts), and walks through getting credentials in\n   one motion (and bundles dep install too, in case `clickhouse_connect` is also missing).\n   **No credentials, and a task that one day of data answers?** Use the free demo database: see `references\u002Fauth.md`.\n   For the credential-acquisition steps alone:\n   **Don't yet have them?** Pick a plan at **https:\u002F\u002Fkoinju.io\u002Fpricing** — after sign-up\n   Koinju emails you a link to **https:\u002F\u002Fdataroom.koinju.io\u002F** where the REST key and\n   ClickHouse host \u002F user \u002F password live. **Already signed up but no email \u002F can't access\n   the dataroom?** Fall back to **support@koinju.io**. Then have them `export` the\n   variables in their shell profile (or a sourced `~\u002F.koinju.env` with `chmod 600`). See\n   `references\u002Fauth.md` for full details.\n\n4. **Write the query.** Reach for the right reference:\n   - **Market \u002F product \u002F instrument discovery** (\"what BTC pairs exist?\", \"which options are listed?\") → public `\u002Fmarket\u002F*` endpoints in [`references\u002Frest.md`](references\u002Frest.md). No auth, no SQL. Never reach for `api.spot_markets` \u002F `api.future_markets` \u002F `api.option_markets` for a plain listing.\n   - [`references\u002Fdata-tables.md`](references\u002Fdata-tables.md) — table schemas, latest-value patterns (analytics, not discovery)\n   - [`references\u002Foptimization.md`](references\u002Foptimization.md) — query perf for trade \u002F year-long ohlcv\n   - [`references\u002Fbacktesting.md`](references\u002Fbacktesting.md) — strategy vs buy-and-hold workflow\n   - [`references\u002Fplotting.md`](references\u002Fplotting.md) — option smile, vol surface, candlestick, DVOL, equity curve\n   - [`references\u002Foption_iv_greeks.md`](references\u002Foption_iv_greeks.md) — recompute Deribit option IV + Greeks (Black-76 on the forward) from premiums; verified against `mark_iv` \u002F chain Greeks; deep history via the `deribit-option` \u002F `deribit-future` trade tapes\n   - [`references\u002Fintegrations.md`](references\u002Fintegrations.md) — Postgres \u002F ClickHouse \u002F Redis plug-in patterns\n   - [`references\u002Frest.md`](references\u002Frest.md) — REST endpoints (discovery + authed quick lookups). Autogenerated endpoint catalog at the bottom is the canonical reference for paths \u002F params \u002F return shapes.\n   - [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F) — 11 CI-validated cookbook recipes (Bollinger, Sortino, max drawdown, mean-reversion z-score, historical volatility, DCA vs lump-sum, perp funding, spot\u002Fperp spreads, cross-exchange arbitrage, OHLCV streaming, correlation). **Reach here before reinventing a metric** — each pairs the Python implementation with the SQL equivalent and a parity test.\n\n5. **Execute & verify.** Run the query, validate the result shape, return to user.\n\n   **Default rendering: markdown tables.** When the result fits on screen (roughly ≤ 50 rows × ≤ 8 columns, no cell wider than ~40 chars), render it as a markdown table in your response — Claude Code renders these natively and they're the most scannable format. For DataFrames: `print(df.to_markdown(index=False))` (needs `tabulate` — bundled in the project-setup deps). For REST \u002F `jq` output: wrap in pandas first, or align text columns with `column -t -s$'\\t'`. For single scalars (\"current BTC volatility → 47.3%\"), state the value in prose with context, not a 1×1 table.\n\n   **Too large for a table:** don't dump. Show head\u002Ftail with a `... (N more rows)` indicator, summarize with counts\u002Faggregations, or save the full result to a file (`df.to_csv(\"out.csv\")`, `df.to_parquet(\"out.parquet\")`) and tell the user the path.\n\n   **After the first successful run in a project**, run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` and check the trailing token. If it ends in `suggest_save_global:yes` (project `.koinju.env` populated and working, no `~\u002F.koinju.env`), propose:\n\n   > \"Your project `.koinju.env` works. Want me to copy it to `~\u002F.koinju.env` so future Claude sessions in other projects pick up the same credentials automatically?\"\n\n   On yes: `cp .koinju.env ~\u002F.koinju.env && chmod 600 ~\u002F.koinju.env`. On no: drop it; don't ask again in the same session. The bundled helpers auto-source both files (project wins per-var), so the global copy doesn't conflict with future per-project overrides.\n\n## Project setup & dependency bootstrap\n\n**Default: run `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fsetup.sh [target-dir]`.** It probes cwd (empty → in-place, else `.\u002Fkoinju-demo\u002F`), probes `uv`, runs `uv init` (or `python3 -m venv` fallback), installs `clickhouse-connect pandas plotly tabulate`, seeds `main.py` from the welcome script, creates `.koinju.env` from the bundled template (chmod 600), appends to `.gitignore`, prints the credential URL and run command. Idempotent.\n\n**Two triggers, same script:**\n\n- **Proactive** — user asks \"set up a python project for koinju\", \"scaffold a koinju starter\", \"create a project to call the API\", etc. Just run `setup.sh`; this IS the proposal.\n- **Reactive** — a SQL task fails with `ModuleNotFoundError` and\u002For `KOINJU_*` env vars are unset. **Stop**. Do NOT `pip install` in the current shell. Do NOT hunt for an alternative Python (`\u002Fusr\u002Fbin\u002Fpython3`, `python3.10`, ...) — that \"works\" by accident and confuses the user about which env runs their code. Don't fix one blocker and leave the other.\n\n  1. Probe with `bash ~\u002F.claude\u002Fskills\u002Fkoinju\u002Fscripts\u002Fprobe-env.sh` — one line tells you uv \u002F venv \u002F deps \u002F creds \u002F env-file state.\n  2. Propose: *\"[Deps \u002F credentials \u002F both] aren't set up — I can scaffold a clean uv project at `.\u002Fkoinju-demo\u002F` that handles it: installs deps, creates a `.koinju.env` (auto-loaded by the scripts), points you at koinju.io\u002Fpricing for credentials. OK?\"*\n  3. If accepted → `setup.sh`. If declined → **print the code you would have run as a fenced block** plus a `koinju.io\u002Fpricing` pointer if creds were the missing piece.\n\nFor manual bootstrap (no script access, custom requirements, debugging), see [`references\u002Fbootstrap.md`](references\u002Fbootstrap.md) — full templates, variations (existing project, plotting starter), and the don'ts.\n\n## Migration: legacy env-var names\n\nA project using `KOINJU_HOST` \u002F `KOINJU_USER` \u002F `KOINJU_PASSWORD` (and no `KOINJU_API_KEY`) is on the **old** naming. Current names:\n\n| Legacy | Current |\n|---|---|\n| `KOINJU_HOST` | `KOINJU_DB_HOST` |\n| `KOINJU_USER` | `KOINJU_DB_USER` |\n| `KOINJU_PASSWORD` | `KOINJU_DB_PASSWORD` |\n| *(none)* | `KOINJU_API_KEY` *(new — required by REST endpoints and the unified `load_koinju_credentials()` helper)* |\n\nAlso: rename the file from `.env` \u002F `.env.example` to `.koinju.env` (project-local) or `~\u002F.koinju.env` (global), then `chmod 600`. The bundled scripts and `_autosource_koinju_env()` only look at `.koinju.env` — they don't auto-source `.env`.\n\nOne-liner to migrate an existing `.env`:\n\n```bash\nsed \\\n  -e 's\u002F^export KOINJU_HOST=\u002Fexport KOINJU_DB_HOST=\u002F' \\\n  -e 's\u002F^export KOINJU_USER=\u002Fexport KOINJU_DB_USER=\u002F' \\\n  -e 's\u002F^export KOINJU_PASSWORD=\u002Fexport KOINJU_DB_PASSWORD=\u002F' \\\n  .env > .koinju.env \\\n  && rm .env \\\n  && chmod 600 .koinju.env \\\n  && { grep -qxF '.koinju.env' .gitignore 2>\u002Fdev\u002Fnull || echo '.koinju.env' >> .gitignore; }\n```\n\n(Stream-rewrite form rather than `sed -i` — portable across GNU and BSD `sed` without the `-i ''` macOS quirk.)\n\nThen have the user add `export KOINJU_API_KEY=...` to `.koinju.env` (grab the REST key from `dataroom.koinju.io`).\n\n**Format reminder for `KOINJU_DB_HOST`**: bare hostname only (e.g. `abc123.koinju.io`). Strip any `https:\u002F\u002F` scheme, trailing `:8443` port, or trailing `\u002F` if the user copy\u002Fpasted the full dataroom URL — `clickhouse-connect` adds the scheme and port itself, and port is set via `KOINJU_DB_PORT` (default 8443).\n\n## Bundled resources\n\n- [`references\u002Fauth.md`](references\u002Fauth.md) — credential setup (`KOINJU_*` env vars, dataroom URL, support email, Python helper)\n- [`references\u002Fdata-tables.md`](references\u002Fdata-tables.md) — gotchas (`Decimal`, snapshot cadence, `mark_iv` in percent), per-table notes (`api.ohlcv`, `api.trade`, `api.funding_rate`, `api.option_chains`, `api.market_*`), and an autogenerated full-schema reference appendix regenerated from live `DESCRIBE`\n- [`references\u002Foptimization.md`](references\u002Foptimization.md) — query optimization rules for koinju tables + a worked LINK-USDT example\n- [`references\u002Fbacktesting.md`](references\u002Fbacktesting.md) — strategy vs buy-and-hold workflow, metrics, common pitfalls\n- [`references\u002Fplotting.md`](references\u002Fplotting.md) — Plotly recipes for option smile, vol surface, candlestick, DVOL, equity curves\n- [`references\u002Foption_iv_greeks.md`](references\u002Foption_iv_greeks.md) — recompute Deribit option IV + Greeks with Black-76 on the forward (`underlying_price`, not spot); one-query SQL solver (`erf` + `arrayFold`) verified against the chain; deep history from the `deribit-option` \u002F `deribit-future` trade tapes\n- [`references\u002Fintegrations.md`](references\u002Fintegrations.md) — Postgres \u002F ClickHouse (`remoteSecure()`, ETL) \u002F Redis caching patterns\n- [`references\u002Frest.md`](references\u002Frest.md) — discovery rule, BTC-product `jq` cookbook, per-tier rate limits, Python example, REST-vs-SQL decision — and an autogenerated endpoint catalog regenerated from `api\u002Fmarket-data.yaml`\n- [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F) — 11 CI-validated cookbook articles (Bollinger, Sortino, max drawdown, mean-reversion z-score, historical vol, DCA vs lump-sum, perp funding, spot\u002Fperp spreads, cross-exchange arbitrage, OHLCV streaming, correlation), each with a Python implementation, SQL equivalent, and parity test. Synced from `api\u002Fpython_vs_sql\u002F`.\n- [`references\u002Fbootstrap.md`](references\u002Fbootstrap.md) — fallback when `clickhouse_connect` is missing: propose a uv project (or print the code if declined); explicit \"don't pip install \u002F don't hunt alternative Pythons\" guidance\n- [`references\u002Fkoinju.env.example`](references\u002Fkoinju.env.example) — credential template (the bootstrap `cp`s this to `.koinju.env` and chmod 600s it)\n- [`scripts\u002Fsetup.sh`](scripts\u002Fsetup.sh) — one-shot bootstrap: cwd-probe, uv-or-venv, install deps, seed `main.py` + `.koinju.env` + `.gitignore`. Pass target dir as `$1`. Idempotent.\n- [`scripts\u002Fprobe-env.sh`](scripts\u002Fprobe-env.sh) — one-line state probe (`uv:ok pyproject:found venv:active deps:ok creds:ok ...`). Single tool call instead of multiple `command -v` \u002F `python -c import` \u002F `[ -n $VAR ]` invocations.\n- [`scripts\u002Fprobe-schema.sh`](scripts\u002Fprobe-schema.sh) — dumps live `api.*` tables + columns over the ClickHouse HTTPS interface. Run before writing SQL against an unfamiliar table; **live schema is the source of truth, not the bundled refs**.\n- [`scripts\u002Fwelcome_btc_usdt.py`](scripts\u002Fwelcome_btc_usdt.py) — runnable demo: 7d of BTC-USDT 1h candles via ClickHouse, Plotly candlestick (used as the seed `main.py` by `setup.sh`)\n- [`scripts\u002Fplot_option_smile.py`](scripts\u002Fplot_option_smile.py) — runnable: BTC option smile across two exchanges at the nearest expiration\n- [`scripts\u002Fbacktest_buy_and_hold.py`](scripts\u002Fbacktest_buy_and_hold.py) — runnable: SMA(20\u002F50) vs buy-and-hold on any market, reports total return \u002F Sharpe \u002F max drawdown\n\nDeeper SQL recipes ship inside the skill at [`references\u002Frecipes\u002F`](references\u002Frecipes\u002F). The corresponding GitBook pages live at https:\u002F\u002Fdocs.koinju.io\u002Fsql-cookbook\u002F.\n\n> **Source of truth:** https:\u002F\u002Fdocs.koinju.io. Always prefer the live docs if there's a conflict with bundled references.",{"name":5,"metadata":24,"description":7},{"author":25,"version":26,"homepage":27},"Dmitry Prokofyev","0.9.4","https:\u002F\u002Fdocs.koinju.io","main","4aff87e77e63c1886a978b82902814d015f55a4f","skills\u002Fmcp-servers\u002Fkoinju-koinju",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill koinju",{"tool":43,"command":44},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill koinju",{"tool":46,"command":47},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill koinju","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,151,155,159,163,167,171,175],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"README.md","REFERENCE","参考文档",2443,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002FREADME.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fauth.md",6810,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fauth.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fbacktesting.md",5013,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fbacktesting.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fbootstrap.md",9805,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fbootstrap.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdata-tables.md",18634,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fdata-tables.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fintegrations.md",5812,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fintegrations.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fkoinju.env.example",1275,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fkoinju.env.example",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Foptimization.md",5457,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Foptimization.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Foption_iv_greeks.md",6730,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Foption_iv_greeks.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fplotting.md",5656,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Fplotting.md",{"path":94,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Frecipes\u002Fbollinger_bands.md",6310,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fbollinger_bands.md",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Frecipes\u002Fcorrelation.md",5810,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fcorrelation.md",{"path":102,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Frecipes\u002Fcross_exchange_arbitrage.md",6326,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fcross_exchange_arbitrage.md",{"path":106,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Frecipes\u002Fdca_vs_lump_sum.md",7511,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fdca_vs_lump_sum.md",{"path":110,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Frecipes\u002Fderibit_perpetual_funding.md",8558,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fderibit_perpetual_funding.md",{"path":114,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Frecipes\u002Fhistorical_volatility.md",6569,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fhistorical_volatility.md",{"path":118,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Frecipes\u002Fmax_drawdown_calmar.md",5993,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fmax_drawdown_calmar.md",{"path":122,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Frecipes\u002Fmean_reversion_zscore.md",6022,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fmean_reversion_zscore.md",{"path":126,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Frecipes\u002Fohlcv_streaming.md",6741,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fohlcv_streaming.md",{"path":130,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Frecipes\u002FREADME.md",796,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002FREADME.md",{"path":134,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Frecipes\u002Fsortino_ratio.md",5719,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fsortino_ratio.md",{"path":138,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Frecipes\u002Fspot_futures_perp_spreads.md",8152,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frecipes\u002Fspot_futures_perp_spreads.md",{"path":142,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Frest.md",12507,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Freferences\u002Frest.md",{"path":146,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":149,"sourceHtmlUrl":150},"scripts\u002Fbacktest_buy_and_hold.py","SCRIPT","脚本",5501,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fbacktest_buy_and_hold.py",{"path":152,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":153,"sourceHtmlUrl":154},"scripts\u002Fplot_option_smile.py",5679,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fplot_option_smile.py",{"path":156,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":157,"sourceHtmlUrl":158},"scripts\u002Fprobe-env.sh",2282,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fprobe-env.sh",{"path":160,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":161,"sourceHtmlUrl":162},"scripts\u002Fprobe-schema.sh",3624,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fprobe-schema.sh",{"path":164,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":165,"sourceHtmlUrl":166},"scripts\u002Fsetup.sh",2989,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fsetup.sh",{"path":168,"resourceType":147,"resourceTypeDesc":148,"sizeBytes":169,"sourceHtmlUrl":170},"scripts\u002Fwelcome_btc_usdt.py",4355,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002Fscripts\u002Fwelcome_btc_usdt.py",{"path":172,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":173,"sourceHtmlUrl":174},"SOURCE.md",314,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002FSOURCE.md",{"path":176,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":177,"sourceHtmlUrl":178},"TRUST.auto.yaml",2312,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fkoinju-koinju\u002FTRUST.auto.yaml",[180,189,197,205,213,221],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":185,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":19},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":193,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":19},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":19},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":209,"sourceHtmlUrl":210,"categories":211,"keywords":212,"publishedAt":19},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":217,"sourceHtmlUrl":218,"categories":219,"keywords":220,"publishedAt":19},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":222,"name":223,"nameZh":6,"description":224,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":225,"sourceHtmlUrl":226,"categories":227,"keywords":228,"publishedAt":19},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]