← 返回 Skills 市场
in-liberty420

Kraken Pro

作者 in-liberty420 · GitHub ↗ · v1.0.6
cross-platform ✓ 安全检测通过
787
总下载
0
收藏
1
当前安装
7
版本数
在 OpenClaw 中安装
/install kraken-pro
功能描述
Manage Kraken accounts via CLI to view portfolio, market data, place/cancel orders, manage staking, export ledger, and handle deposits/withdrawals.
使用说明 (SKILL.md)

Kraken Skill

Manage your Kraken exchange account via CLI.

Setup

pip3 install -r requirements.txt

Set credentials via environment variables or OpenClaw config (skills.entries.kraken-pro.env).

Get API key: https://www.kraken.com/u/security/api

Commands

Run: python3 kraken_cli.py \x3Ccommand> [options]

All commands accept --json for raw JSON output.

Portfolio (auth required)

Command Description
summary Portfolio overview (handles flex vs bonded earn correctly)
net-worth Single net worth number
holdings Asset breakdown with USD values
balance Raw asset quantities

Market Data (no auth)

Command Description
ticker --pair XBTUSD Price and 24h stats
pairs Trading pairs
assets Asset list

Order History (auth required)

Command Description
open-orders Active orders
closed-orders [--limit N] Completed orders
trades [--limit N] [--csv] Trade execution history (CSV for export)

Ledger (auth required)

ledger [--start YYYY-MM-DD] [--end YYYY-MM-DD] [--asset BTC] [--type trade|deposit|withdrawal|staking] [--csv] [--limit N]

Auto-paginates (Kraken returns max 50/request). --csv dumps raw Kraken data.

Trading (auth required)

All trading commands require --confirm. Use --validate for dry-run.

Command Description
buy --pair XBTUSD --type market|limit --amount N [--price P] --confirm Place buy order
sell --pair XBTUSD --type market|limit --amount N [--price P] --confirm Place sell order
cancel-order --id OXXXXX --confirm Cancel specific order
cancel-all --confirm Cancel all open orders

Always confirm with the user before placing real orders. Use --validate first.

Earn/Staking (auth required)

Command Description
earn-positions Current staking allocations
earn-strategies Available yield programs
earn-status Pending requests
earn-allocate --strategy-id ID --amount N --confirm Stake funds
earn-deallocate --strategy-id ID --amount N --confirm Unstake funds

Funding (auth required)

Command Description
deposit-methods --asset BTC Deposit methods for an asset
deposit-address --asset BTC Get deposit address
withdraw --asset BTC --key NAME --amount N --confirm Withdraw to saved address
withdraw-status Recent withdrawal status

Withdrawal notes:

  • Addresses must be pre-configured in Kraken's web UI (can't add via API)
  • Can't list saved address names via API — ask the user for the key name
  • Addresses are per-asset: a SOL address won't work for USDC withdrawals even if it's the same wallet. Each asset needs its own entry.
  • --key is the saved address name in Kraken, not the actual address

Example Usage

User Request Command
What's my portfolio? summary
BTC price? ticker --pair XBTUSD
Export 2025 ledger for taxes ledger --start 2025-01-01 --end 2025-12-31 --csv
Export trade history trades --csv
Buy 0.1 BTC at market buy --pair XBTUSD --type market --amount 0.1 --confirm
Show staking positions earn-positions

Kraken Pair Naming

Kraken uses non-standard names: XBT (not BTC), XETH (not ETH), Z-prefix for fiat (ZUSD, ZCAD). When unsure of a pair name, run pairs --json and grep for the asset.

Portfolio Logic

Kraken has two earn types:

  • Auto Earn (flex): in main wallet, included in trade balance equity
  • Bonded staking: separate earn wallet, NOT in trade balance

summary calculates: Total = Trade Balance Equity + Bonded Staking Only

API Permissions

Feature Permission
Balances, portfolio, ledger Query Funds
Orders, trades (view) Query Open/Closed Orders & Trades
Place/cancel orders Create & Modify Orders
Earn allocate/deallocate Withdraw Funds
Withdrawals Withdraw Funds
Market data None
安全使用建议
This package appears to do what it says: a CLI that uses the python-kraken-sdk to manage a Kraken account. Before installing and using it, consider the following: 1) Create API keys with the minimum required scopes — if you only need read access (portfolio, ledger, prices), create a read-only key and do NOT grant Withdraw/Create permissions. 2) If you need trading/withdrawal, be aware those scopes allow moving funds; only use them with trusted code. 3) The SKILL.md asks you to run `pip3 install -r requirements.txt` which will pull python-kraken-sdk from PyPI; review the dependency and prefer installing in an isolated virtualenv/container. 4) Although trading and withdrawals require explicit `--confirm` flags, an autonomous agent with access to the skill and stored API credentials could invoke commands; if you do not want autonomous use, restrict the agent's ability to call this skill or avoid storing secrets in agent config. 5) If you want maximum assurance, manually review the full kraken_cli.py content (the included file is present) and test with a least-privilege API key or a sandbox account before using with real funds.
功能分析
Type: OpenClaw Skill Name: kraken-pro Version: 1.0.6 The OpenClaw Kraken skill is a well-structured and transparent CLI tool for managing Kraken exchange accounts. It uses the official `python-kraken-sdk` library, retrieves API keys from environment variables as expected, and implements critical safety measures like `--confirm` flags for all trading, withdrawal, and staking actions. The `SKILL.md` documentation clearly outlines its purpose, required permissions, and usage, without any evidence of prompt injection attempts or instructions for malicious behavior. No signs of data exfiltration, unauthorized execution, persistence mechanisms, or obfuscation were found.
能力评估
Purpose & Capability
Name/description, required binaries (python3), required env vars (KRAKEN_API_KEY, KRAKEN_API_SECRET), included code (kraken_cli.py) and requirements (python-kraken-sdk) all directly match a CLI for interacting with Kraken (portfolio, market data, trades, ledger, staking, deposits/withdrawals). There are no unrelated credentials or binaries requested.
Instruction Scope
SKILL.md instructs installing requirements and running the provided CLI. The runtime instructions and code only reference Kraken API calls, environment variables for keys, and local CSV/JSON outputs. There are no instructions to read unrelated files, access other system secrets, or send data to third-party endpoints outside of Kraken or PyPI (for package install).
Install Mechanism
There is no platform install spec; SKILL.md tells the user to run `pip3 install -r requirements.txt`, which will install python-kraken-sdk from PyPI (python-kraken-sdk==3.2.7 is pinned). This is expected for a Python CLI but is a moderate-risk install operation because it pulls code from a public registry. The packaged code itself is included (kraken_cli.py), so no arbitrary remote downloads beyond PyPI are required.
Credentials
The skill requires KRAKEN_API_KEY and KRAKEN_API_SECRET — these are exactly the credentials needed to perform authenticated account actions (orders, staking, withdrawals). That is proportionate to the claimed features, but these credentials are high-privilege (withdraw and create/modify orders). The SKILL.md and code rely on those credentials only and do not request unrelated secrets.
Persistence & Privilege
The skill does not request always:true or any special platform privileges. It doesn't modify other skills or system configuration. Note: model invocation is enabled by default (disable-model-invocation: false), so the agent could call this skill autonomously if the platform allows; combined with high-privilege API keys this increases risk in practice (see guidance).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kraken-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kraken-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.6
Remove .env reference from error message.
v1.0.5
Remove .env and python-dotenv support entirely. Credentials via env vars only (OpenClaw config injection).
v1.0.4
Pin dependency versions. Remove .env setup instructions from SKILL.md (use OpenClaw config injection instead).
v1.0.3
Proper OpenClaw metadata: requires.env declares KRAKEN_API_KEY/SECRET, primaryEnv set. Removed local .env dependency.
v1.0.2
Fix: declare required env vars (KRAKEN_API_KEY, KRAKEN_API_SECRET) in frontmatter metadata for security scan compliance.
v1.0.1
Full Kraken exchange skill: portfolio, trading, earn/staking, ledger export, deposits, withdrawals.
v1.0.0
Initial release: portfolio, market data, trading (market+limit), earn/staking, ledger export with date filtering + CSV, deposits, withdrawals. 22 commands.
元数据
Slug kraken-pro
版本 1.0.6
许可证
累计安装 1
当前安装数 1
历史版本数 7
常见问题

Kraken Pro 是什么?

Manage Kraken accounts via CLI to view portfolio, market data, place/cancel orders, manage staking, export ledger, and handle deposits/withdrawals. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 787 次。

如何安装 Kraken Pro?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kraken-pro」即可一键安装,无需额外配置。

Kraken Pro 是免费的吗?

是的,Kraken Pro 完全免费(开源免费),可自由下载、安装和使用。

Kraken Pro 支持哪些平台?

Kraken Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kraken Pro?

由 in-liberty420(@in-liberty420)开发并维护,当前版本 v1.0.6。

💬 留言讨论