Agent Skillskrakenfx/kraken-cli › recipe-drawdown-circuit-breaker

recipe-drawdown-circuit-breaker

GitHub

监控投资组合回撤,当超过阈值时自动取消订单并暂停交易,需人工确认恢复。

skills/recipe-drawdown-circuit-breaker/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

需要自动风控止损 投资组合大幅回撤报警

Install

npx skills add krakenfx/kraken-cli --skill recipe-drawdown-circuit-breaker -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@recipe-drawdown-circuit-breaker

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill recipe-drawdown-circuit-breaker -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-drawdown-circuit-breaker",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "domain": "risk",
            "category": "recipe"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-risk-operations",
                "kraken-alert-patterns"
            ]
        }
    },
    "description": "Automatically stop trading when portfolio drawdown exceeds a threshold."
}

Drawdown Circuit Breaker

PREREQUISITE: Load the following skills to execute this recipe: kraken-risk-operations, kraken-alert-patterns

Monitor portfolio value and halt trading if cumulative drawdown from peak exceeds a limit (e.g., 10%).

Steps

  1. Record starting portfolio value: kraken balance -o json 2>/dev/null + kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null (calculate total USD value)
  2. Set this as the high-water mark
  3. On each check interval (at least 5 seconds; see kraken-rate-limits for tier budgets):
    • Recalculate total portfolio value
    • Update high-water mark if value exceeds previous peak
    • Calculate drawdown: (peak - current) / peak * 100
  4. If drawdown exceeds threshold (e.g., 10%):
    • Alert the user immediately
    • Cancel all open orders: kraken order cancel-all -o json 2>/dev/null
    • Cancel all futures orders: kraken futures cancel-all -o json 2>/dev/null
  5. Present drawdown report: peak value, current value, drawdown percentage, orders cancelled
  6. Cancel operations require explicit human approval unless operating at autonomy level 4+
  7. Wait for explicit user instruction before resuming any trading activity

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.

Version History

  • aa56e59 Current 2026-08-20 04:46
  • aa32814 2026-07-25 10:29

Same Skill Collection

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-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-launch-grid-bot/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

Metadata

Files
0
Version
aa56e59
Hash
fcf1e689
Indexed
2026-07-25 10:29

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 11:55
浙ICP备14020137号-1 $Гость$