微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Kraken Exchange

Kraken Exchange · v0.2.0
安全 unknown 级 作者 askbeka 公开目录收录
1.1k 下载 0 安装 5k 收藏 1 浏览

简介

Kraken Exchange

原始描述

Interact with the Kraken cryptocurrency exchange — spot + futures, REST + WebSocket. Use when: (1) checking crypto prices or market data, (2) viewing account...

通过你的 Agent 添加

安装目录:kraken/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/kraken-exchange/
Codex CLI~/.codex/skills/kraken-exchange/
DeepSeek Harness~/.agents/skills/kraken-exchange/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: kraken description: "Interact with the Kraken cryptocurrency exchange. Use when: (1) checking crypto prices or market data, (2) viewing account balances or trade history, (3) placing or cancelling orders, (4) building DCA strategies or price alerts, (5) any mention of Kraken, crypto trading, or portfolio management. Requires the tentactl binary and Kraken API keys for authenticated endpoints." metadata: { "openclaw": { "emoji": "🐙", "requires": { "bins": ["tentactl"], "env": ["KRAKEN_API_KEY", "KRAKEN_API_SECRET"], }, "install": [ { "id": "cargo", "kind": "cargo", "package": "tentactl", "bins": ["tentactl"], "label": "Install tentactl via cargo (source: https://github.com/askbeka/tentactl)", }, ], "credentials": { "KRAKEN_API_KEY": "Kraken API key — generate at https://www.kraken.com/u/security/api", "KRAKEN_API_SECRET": "Kraken API secret (private key from the same page)", }, "privacy": { "files_written": ["~/.kraken-mcp.env"], "network": ["api.kraken.com"], "notes": "API keys are stored in ~/.kraken-mcp.env (chmod 600). Market data endpoints require no authentication. Account and trading endpoints require KRAKEN_API_KEY and KRAKEN_API_SECRET.", }, }, }

Kraken Exchange

MCP server and CLI tool for the Kraken cryptocurrency exchange. Source code: github.com/askbeka/tentactl (MIT license).

How It Works

tentactl is a Rust binary that speaks MCP (Model Context Protocol) over stdio. The skill scripts (kraken.sh, kraken.py) wrap it for direct CLI use. All network requests go to api.kraken.com only.

Setup

1. Install the binary

The binary is installed automatically via cargo install tentactl if not already present. Source: crates.io/crates/tentactl / github.com/askbeka/tentactl.

2. Configure API keys

Market data tools (ticker, orderbook, OHLC) work without any keys. For account and trading tools, you need Kraken API credentials:

# Option A: Manual .env file
echo "KRAKEN_API_KEY=your-key" > ~/.kraken-mcp.env
echo "KRAKEN_API_SECRET=your-secret" >> ~/.kraken-mcp.env
chmod 600 ~/.kraken-mcp.env
# Option B: 1Password CLI (optional — requires `op` to be installed and configured)
# This script prompts you to select a vault item containing your Kraken keys.
scripts/setup-keys.sh

Note: The setup script only reads from 1Password if you explicitly run it and have the op CLI installed. It is entirely optional.

Key permissions: Create keys with minimal permissions at https://www.kraken.com/u/security/api

  • Read-only: enable Query Funds and Query Open Orders & Trades
  • Trading: also enable Create & Modify Orders

Usage

All commands go through scripts/kraken.sh (loads .env, finds binary) or python3 scripts/kraken.py directly:

# Market data (no auth needed)
scripts/kraken.sh get_ticker '{"pair":"XBTUSD"}'
scripts/kraken.sh get_orderbook '{"pair":"ETHUSD","count":5}'
scripts/kraken.sh get_ohlc '{"pair":"SOLUSD","interval":60}'

# Account (needs API keys)
scripts/kraken.sh get_balance
scripts/kraken.sh get_trade_history
scripts/kraken.sh get_open_orders

# Trading (needs API keys) ⚠️ REAL MONEY
scripts/kraken.sh place_order '{"pair":"XBTUSD","direction":"buy","order_type":"market","volume":"0.001","validate":true}'
scripts/kraken.sh cancel_order '{"txid":"TXID-123"}'

If the binary is already in PATH and env vars are set, use python3 scripts/kraken.py directly with the same arguments.

Tools Reference

See references/tools.md for full parameter docs.

Safety Rules

  • ALWAYS use validate: true first when placing orders
  • ALWAYS confirm with the user before placing real orders
  • NEVER place orders without explicit user approval
  • Market orders execute IMMEDIATELY — prefer limit orders when possible
  • Display the validation result and ask for confirmation before removing validate

Trading Pairs

Kraken uses its own pair format: XBTUSD (not BTCUSD), XETHZUSD, SOLUSD, etc. When unsure, try the pair — the API returns a clear error for invalid pairs.

Automation Patterns

DCA (Dollar Cost Average)

Set up via openclaw cron:

openclaw cron add --schedule "0 9 * * 1" --task "Buy $50 of BTC on Kraken using the kraken skill. Use validate first, then execute."

Price Alerts

Check in heartbeat or cron, notify if threshold crossed. Store alert config in memory/kraken-alerts.json.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill