kraken-fee-optimization

kraken-fee-optimization is a skill for Claude Code from krakenfx/kraken-cli. It costs 23 tokens per session (785 once invoked), scanned A, original, MIT.

Guidance for reducing Kraken trading fees by choosing how orders execute and how fee discounts apply. Maker orders add liquidity to the order book, while taker orders fill existing orders immediately.

In plain words
What is it for?
Use it to check fee tiers, place post-only maker orders, track 30-day volume, and choose a fee currency.
Why use it?
It helps avoid unnecessarily high fees and account for trading volume, order type, and the currency used to pay fees.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; built for openclaw.

Part of the kraken-cli plugin — 59 skills, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/krakenfx/kraken-cli/kraken-fee-optimization
Any agent
npx skills add krakenfx/kraken-cli --skill kraken-fee-optimization
Clone the repo
git clone --depth 1 https://github.com/krakenfx/kraken-cli

Made for: Claude Code.

Or install kraken-cli, the plugin that ships this one along with the rest of its 59 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kraken-fee-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-fee-optimization.svg)](https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-fee-optimization)
Your own site
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-fee-optimization"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-fee-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00785
Opus 5 $0.00012 $0.00392
Sonnet 5 $0.00005 $0.00157
Haiku 4.5 $0.00002 $0.00078

Measured 6d ago against content hash 7f20d573b329, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

kraken-fee-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kraken-fee-optimization/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kraken-fee-optimization

Use this skill for:

  • understanding maker vs taker fee structures
  • using post-only orders to guarantee maker rates
  • tracking 30-day volume for tier progression
  • choosing fee currency to minimize cost

Fee Tiers

Check current 30-day volume and fee rates:

kraken volume --pair BTCUSD -o json 2>/dev/null

The response includes volume (30-day USD equivalent) and fees / fees_maker arrays showing the tier schedule.

Maker vs Taker

  • Taker: you remove liquidity (market orders, limit orders that fill immediately). Higher fee.
  • Maker: you add liquidity (limit orders that rest on the book). Lower fee, sometimes zero.

At starter tier: 0.26% taker, 0.16% maker. The difference compounds over many trades.

Post-Only Orders

Force maker execution by rejecting orders that would immediately fill:

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

If the order would cross the spread and fill as taker, it is rejected instead. This guarantees maker fees on every fill.

Fee Currency Selection

By default, fees are deducted from the received currency. Override with:

kraken order buy BTCUSD 0.001 --type limit --price 50000 --oflags fciq -o json 2>/dev/null
Flag Fee taken from
fciq Quote currency (e.g., USD)
fcib Base currency (e.g., BTC)

Paying fees in quote currency preserves your base asset balance, useful when accumulating.

Volume-Based Optimization

Higher 30-day volume unlocks lower fees. Track progress:

kraken volume -o json 2>/dev/null

If close to the next tier threshold, consolidating trading activity (rather than splitting across exchanges) can push you into a cheaper bracket.

Futures Fee Schedules

kraken futures feeschedules -o json 2>/dev/null

Futures fee volumes:

kraken futures fee-schedule-volumes -o json 2>/dev/null

Fee-Aware Order Sizing

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 110 lines · 23 tokens per session scan A 7f20d573b329

Subscribe to this mod's changes

kraken-fee-optimization is a skill published in the GitHub repository krakenfx/kraken-cli (707 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 785 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.