Agent Skillskrakenfx/kraken-cli › kraken-order-types

kraken-order-types

GitHub

提供Kraken现货与期货交易订单类型及修饰符的完整参考,涵盖市价、限价、止损止盈等策略,辅助用户根据场景选择正确下单方式并构建复杂订单。

skills/kraken-order-types/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

询问如何设置止损或止盈订单 需要理解特定订单修饰符含义 查询Kraken API下单命令格式

Install

npx skills add krakenfx/kraken-cli --skill kraken-order-types -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@kraken-order-types

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill kraken-order-types -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-order-types",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "category": "finance"
        },
        "requires": {
            "bins": [
                "kraken"
            ]
        }
    },
    "description": "Complete reference for all spot and futures order types and modifiers."
}

kraken-order-types

Use this skill for:

  • choosing the right order type for a given scenario
  • understanding order modifiers (post-only, reduce-only, GTC, IOC, FOK)
  • constructing complex orders with stop-loss and take-profit
  • batch and conditional order patterns

Spot Order Types

Market

Fills immediately at best available price. Simple, guaranteed fill, but no price control.

kraken order buy BTCUSD 0.001 -o json 2>/dev/null
kraken order sell BTCUSD 0.001 --type market -o json 2>/dev/null

Limit

Fills at the specified price or better. No fill guarantee if price never reaches the level.

kraken order buy BTCUSD 0.001 --type limit --price 50000 -o json 2>/dev/null

Stop-Loss

Triggers a market order when the price crosses the stop level.

kraken order sell BTCUSD 0.001 --type stop-loss --price 48000 -o json 2>/dev/null

Stop-Loss Limit

Triggers a limit order when the price crosses the stop level.

kraken order sell BTCUSD 0.001 --type stop-loss-limit --price 48000 --price2 47500 -o json 2>/dev/null

Take-Profit

Triggers a market order when the price reaches the profit target.

kraken order sell BTCUSD 0.001 --type take-profit --price 55000 -o json 2>/dev/null

Take-Profit Limit

Triggers a limit order at the profit target.

kraken order sell BTCUSD 0.001 --type take-profit-limit --price 55000 --price2 54800 -o json 2>/dev/null

Trailing Stop

Stop level moves with the market to lock in profits.

kraken order sell BTCUSD 0.001 --type trailing-stop --price +500 -o json 2>/dev/null

Trailing Stop Limit

Trailing stop that triggers a limit order instead of market.

kraken order sell BTCUSD 0.001 --type trailing-stop-limit --price +500 --price2 -100 -o json 2>/dev/null

Spot Order Modifiers

Flag Effect
--oflags post Post-only: reject if it would immediately fill (maker only)
--oflags fciq Fee in quote currency
--oflags fcib Fee in base currency
--oflags nompp No market price protection
--timeinforce GTC Good-til-cancelled (default)
--timeinforce IOC Immediate-or-cancel: fill what you can, cancel the rest
--timeinforce GTD Good-til-date: cancel after specified expiry
--validate Validate only, do not submit

Futures Order Types

Market

kraken futures order buy PF_XBTUSD 1 -o json 2>/dev/null

Limit

kraken futures order buy PF_XBTUSD 1 --type limit --price 50000 -o json 2>/dev/null

Stop

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

Trailing Stop (Futures)

kraken futures order sell PF_XBTUSD 1 --type stop --stop-price 68000 --trailing-stop-max-deviation 500 --trailing-stop-deviation-unit quote_currency -o json 2>/dev/null

Futures Order Modifiers

Flag Effect
--reduce-only Close existing position only, never open new
--trigger-signal mark Trigger on mark price
--trigger-signal index Trigger on index price
--trigger-signal last Trigger on last traded price
--client-order-id <ID> Attach a custom ID for tracking

Order Selection Guide

Goal Order Type
Buy now at any price market
Buy at a specific price or better limit
Protect downside if price drops stop-loss
Lock in profit if price rises take-profit
Trail a rising price and sell on reversal trailing-stop
Earn maker rebates limit + --oflags post
Fill immediately or not at all limit + --timeinforce IOC

Validation

Always validate before submitting:

kraken order buy BTCUSD 0.001 --type limit --price 50000 --validate -o json 2>/dev/null

Hard Rules

  • All order placement commands are dangerous. Never execute without explicit human approval.
  • Always validate with --validate before live submission.
  • Use --reduce-only on futures exits to prevent accidental position flips.
  • 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:28

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-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-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
97ed0bdf
Indexed
2026-07-25 10:28

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