Agent Skillskrakenfx/kraken-cli › kraken-stop-take-profit

kraken-stop-take-profit

GitHub

管理 Kraken 交易的风险控制订单,包括止损、止盈、括号单及追踪止损。提供下单、监控执行状态及取消关联订单的 CLI 命令示例与硬规则,确保头寸风险可控并防止意外反向开仓。

skills/kraken-stop-take-profit/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

需要设置止损以限制亏损 需要设置止盈以锁定利润 需要构建包含入场和退出的括号订单 需要配置追踪止损跟随价格上涨

Install

npx skills add krakenfx/kraken-cli --skill kraken-stop-take-profit -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@kraken-stop-take-profit

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill kraken-stop-take-profit -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": "kraken-stop-take-profit",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "category": "finance"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-order-types"
            ]
        }
    },
    "description": "Manage stop-loss and take-profit orders for risk-bounded positions."
}

kraken-stop-take-profit

Use this skill for:

  • placing stop-loss orders to limit downside
  • placing take-profit orders to lock in gains
  • building bracket orders (entry + stop + target)
  • trailing stops that follow a rising price

Simple Stop-Loss

After buying, place a stop-loss below entry:

# Entry
kraken order buy BTCUSD 0.01 --type limit --price 60000 -o json 2>/dev/null

# Stop-loss (triggers market sell if price drops to 57000)
kraken order sell BTCUSD 0.01 --type stop-loss --price 57000 -o json 2>/dev/null

Simple Take-Profit

Place a take-profit above entry:

# Take-profit (triggers market sell if price rises to 65000)
kraken order sell BTCUSD 0.01 --type take-profit --price 65000 -o json 2>/dev/null

Bracket Order (Entry + Stop + Target)

Place all three as separate orders:

# 1. Entry
kraken order buy BTCUSD 0.01 --type limit --price 60000 -o json 2>/dev/null

# 2. Stop-loss
kraken order sell BTCUSD 0.01 --type stop-loss --price 57000 -o json 2>/dev/null

# 3. Take-profit
kraken order sell BTCUSD 0.01 --type take-profit --price 65000 -o json 2>/dev/null

When one exit fills, cancel the other to avoid double exposure:

kraken order cancel <OTHER_TXID> -o json 2>/dev/null

Stop-Loss Limit (Tighter Control)

A stop-loss-limit triggers a limit order instead of market, giving price control but risking no fill in fast moves:

kraken order sell BTCUSD 0.01 --type stop-loss-limit --price 57000 --price2 56800 -o json 2>/dev/null

--price is the trigger, --price2 is the limit price for the resulting order.

Trailing Stop

Follows the market up, sells on reversal:

# Trail $500 below the high
kraken order sell BTCUSD 0.01 --type trailing-stop --price +500 -o json 2>/dev/null

As BTC rises from 60000 to 65000, the stop moves from 59500 to 64500. On a $500 drop from any high, it triggers.

Futures Stop-Loss

kraken futures order sell PF_XBTUSD 1 --type stop --stop-price 57000 --trigger-signal mark --reduce-only -o json 2>/dev/null

Use --trigger-signal mark or index to avoid stop hunts on last-trade wicks. Use --reduce-only to prevent the stop from opening a short.

Management Loop

Monitor stops after placement:

kraken open-orders -o json 2>/dev/null

Stream execution updates to detect when a stop triggers:

kraken ws executions -o json 2>/dev/null

When one side of a bracket fills, immediately cancel the other.

Hard Rules

  • Never place live stop/take-profit orders without explicit human approval.
  • Always cancel the opposite leg when one side of a bracket fills.
  • Use --reduce-only on futures exits to prevent accidental position flips.
  • Validate all orders before submission with --validate.
  • 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:45
  • 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-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-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
5c7a6804
Indexed
2026-07-25 10:29

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 06:47
浙ICP备14020137号-1 $방문자$