Agent Skills › krakenfx/kraken-cli › recipe-launch-grid-bot

recipe-launch-grid-bot

GitHub

部署网格交易机器人,涵盖价格计算、模拟盘验证及实盘安全控制。通过沙箱环境测试策略有效性,并启用死亡开关等安全措施后执行真实订单,确保从模拟到实盘的平滑过渡与风险控制。

skills/recipe-launch-grid-bot/SKILL.md krakenfx/kraken-cli

触发场景

需要部署自动化网格交易策略 在模拟盘中验证交易逻辑后切换至实盘

安装

npx skills add krakenfx/kraken-cli --skill recipe-launch-grid-bot -g -y
更多选项

不安装直接使用

npx skills use krakenfx/kraken-cli@recipe-launch-grid-bot

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill recipe-launch-grid-bot -a claude-code -g -y

安装 repo 全部 skill

npx skills add krakenfx/kraken-cli --all -g -y

预览 repo 内 skill

npx skills add krakenfx/kraken-cli --list

SKILL.md

Frontmatter
{
    "name": "recipe-launch-grid-bot",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "domain": "strategy",
            "category": "recipe"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-grid-trading",
                "kraken-paper-to-live"
            ]
        }
    },
    "description": "Deploy a grid trading bot with paper validation and live safety controls."
}

Launch a Grid Bot

PREREQUISITE: Load the following skills to execute this recipe: kraken-grid-trading, kraken-paper-to-live

Deploy a grid of buy and sell orders across a price range.

CAUTION: Grids profit in ranging markets but lose in strong trends. Always paper-test first.

Steps

  1. Get current price: PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].last_price')
  2. Compute grid levels (e.g., 3 levels at $1000 spacing): BUY1=$(echo "$PRICE - 1000" | bc), BUY2=$(echo "$PRICE - 2000" | bc), BUY3=$(echo "$PRICE - 3000" | bc), SELL1=$(echo "$PRICE + 1000" | bc), SELL2=$(echo "$PRICE + 2000" | bc), SELL3=$(echo "$PRICE + 3000" | bc)
  3. Paper-test the grid in its own workspace: kraken workspace create sandbox --capital 10000 --mode paper -o json 2>/dev/null
  4. Place paper buy levels: kraken --workspace sandbox paper buy BTCUSD 0.001 --type limit --price $BUY1 -o json 2>/dev/null (repeat for BUY2, BUY3)
  5. Place paper sell levels: kraken --workspace sandbox paper sell BTCUSD 0.001 --type limit --price $SELL1 -o json 2>/dev/null (repeat for SELL2, SELL3)
  6. Monitor paper fills: kraken --workspace sandbox paper orders -o json 2>/dev/null
  7. Review paper results: kraken workspace status sandbox -o json 2>/dev/null
  8. Run the live steps with no workspace active: unset KRAKEN_WORKSPACE in the shell that runs them, or prefix each live command with KRAKEN_WORKSPACE=. Inside a paper workspace, balance reads the paper ledger, order cancel-after is refused, and order buy fills on paper.
  9. Pre-flight live: kraken auth test -o json 2>/dev/null && kraken balance -o json 2>/dev/null
  10. Enable dead man's switch: kraken order cancel-after 3600 -o json 2>/dev/null
  11. Validate live grid orders: kraken order buy BTCUSD 0.001 --type limit --price $BUY1 --validate -o json 2>/dev/null
  12. Place live grid (requires human approval): place buy and sell levels sequentially using $BUY1-3 and $SELL1-3
  13. Monitor fills: kraken ws executions -o json 2>/dev/null
  14. Replace filled levels (requires human approval): when a buy fills, place a sell one level up, and vice versa

If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with kraken feedback.

版本历史

  • 671cdd7 当前 2026-11-03 05:49

    更新工作区管理命令以适配 kraken-cli 0.5.0 版本变更

  • aa56e59 2026-08-20 04:46

    版本0.4.0更新:引入工作区与记录会话支持可重复研究循环,替换响应格式为可读模式,新增反馈命令,强化账户设置确认及WebSocket安全限制。

  • aa32814 2026-07-25 10:29

同 Skill 集合

skills/kraken-alert-patterns/SKILL.md
skills/kraken-autonomy-levels/SKILL.md
skills/kraken-basis-trading/SKILL.md
skills/kraken-dca-strategy/SKILL.md
skills/kraken-earn-staking/SKILL.md
skills/kraken-error-recovery/SKILL.md
skills/kraken-fee-optimization/SKILL.md
skills/kraken-funding-carry/SKILL.md
skills/kraken-funding-ops/SKILL.md
skills/kraken-futures-risk/SKILL.md
skills/kraken-grid-trading/SKILL.md
skills/kraken-lab-experiment/SKILL.md
skills/kraken-liquidation-guard/SKILL.md
skills/kraken-market-intel/SKILL.md
skills/kraken-mcp-integration/SKILL.md
skills/kraken-multi-pair/SKILL.md
skills/kraken-order-types/SKILL.md
skills/kraken-paper-strategy/SKILL.md
skills/kraken-paper-to-live/SKILL.md
skills/kraken-playground/SKILL.md
skills/kraken-portfolio-intel/SKILL.md
skills/kraken-rate-limits/SKILL.md
skills/kraken-rebalancing/SKILL.md
skills/kraken-risk-operations/SKILL.md
skills/kraken-setup/SKILL.md
skills/kraken-spot-execution/SKILL.md
skills/kraken-stop-take-profit/SKILL.md
skills/kraken-subaccount-ops/SKILL.md
skills/kraken-tax-export/SKILL.md
skills/kraken-twap-execution/SKILL.md
skills/kraken-ws-streaming/SKILL.md
skills/recipe-basis-trade-entry/SKILL.md
skills/recipe-daily-pnl-report/SKILL.md
skills/recipe-drawdown-circuit-breaker/SKILL.md
skills/recipe-earn-yield-compare/SKILL.md
skills/recipe-emergency-flatten/SKILL.md
skills/recipe-fee-tier-progress/SKILL.md
skills/recipe-funding-rate-scan/SKILL.md
skills/recipe-futures-hedge-spot/SKILL.md
skills/recipe-morning-market-brief/SKILL.md
skills/recipe-multi-pair-breakout-watch/SKILL.md
skills/recipe-paper-strategy-backtest/SKILL.md
skills/recipe-playground-dca-triggered/SKILL.md
skills/recipe-playground-dca/SKILL.md
skills/recipe-playground-price-alert/SKILL.md
skills/recipe-playground-rebalance/SKILL.md
skills/recipe-playground-webhook/SKILL.md
skills/recipe-portfolio-snapshot-csv/SKILL.md
skills/recipe-price-level-alerts/SKILL.md

元信息

文件数
0
版本
671cdd7
Hash
91e5d0b6
收录时间
2026-07-25 10:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-17 21:01
浙ICP备14020137号-1