kraken-order-types

Complete reference for all spot and futures order types and modifiers.

23 stars

Best use case

kraken-order-types is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Complete reference for all spot and futures order types and modifiers.

Teams using kraken-order-types should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/kraken-official-order-types/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kraken-official-order-types/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/kraken-official-order-types/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How kraken-order-types Compares

Feature / Agentkraken-order-typesStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Complete reference for all spot and futures order types and modifiers.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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.

```bash
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.

```bash
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.

```bash
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.

```bash
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.

```bash
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.

```bash
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.

```bash
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.

```bash
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

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

### Limit

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

### Stop

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

### Trailing Stop (Futures)

```bash
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:

```bash
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.

Related Skills

Kraken Crypto Skill

23
from jiayaoqijia/cryptoskill

Use the kraken_cli.py wrapper to query your Kraken account.

openclaw_kraken

23
from jiayaoqijia/cryptoskill

Use a Bash CLI to query Kraken Spot and Futures APIs, inspect account state, run guarded trading and funding actions, and work with Kraken websocket payloads using OpenClaw-managed secrets.

kraken-ws-streaming

23
from jiayaoqijia/cryptoskill

Real-time data streaming via WebSocket for spot and futures.

kraken-twap-execution

23
from jiayaoqijia/cryptoskill

Execute large orders as time-weighted slices to reduce market impact.

kraken-tax-export

23
from jiayaoqijia/cryptoskill

Export trade history, ledgers, and cost basis data for tax reporting.

kraken-subaccount-ops

23
from jiayaoqijia/cryptoskill

Create and manage subaccounts with inter-account transfers.

kraken-stop-take-profit

23
from jiayaoqijia/cryptoskill

Manage stop-loss and take-profit orders for risk-bounded positions.

kraken-spot-execution

23
from jiayaoqijia/cryptoskill

Execute spot orders with validation, confirmation gates, and post-trade checks.

kraken-shared

23
from jiayaoqijia/cryptoskill

Shared runtime contract for kraken-cli: auth, invocation, parsing, and safety.

kraken-risk-operations

23
from jiayaoqijia/cryptoskill

Operational risk controls for live agent trading sessions.

recipe-track-orderbook-depth

23
from jiayaoqijia/cryptoskill

Monitor order book depth and bid-ask imbalance for liquidity signals.

kraken-rebalancing

23
from jiayaoqijia/cryptoskill

Portfolio rebalancing to maintain target allocations across assets.