kraken-twap-execution

kraken-twap-execution is a skill for Claude Code from krakenfx/kraken-cli. It costs 20 tokens per session (916 once invoked), scanned A, original, MIT.

A trading aid that divides a large Kraken order into smaller purchases or sales made at regular time intervals. TWAP, or time-weighted average price, is the average price across those scheduled trades.

In plain words
What is it for?
Use it to execute a large order over minutes, hours, or days, test the plan with paper trading, and track the average fill price across its slices.
Why use it?
It reduces the market impact and possible slippage of placing one large order all at once.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

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

Good fit Use it to execute a large order over minutes, hours, or days, test the plan with paper trading, and track the average fill price across its slices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krakenfx/kraken-cli/kraken-twap-execution
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.

Any agent
npx skills add krakenfx/kraken-cli --skill kraken-twap-execution
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-twap-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-twap-execution/github.svg)](https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-twap-execution)
Your own site
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-twap-execution"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-twap-execution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kraken-twap-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-twap-execution"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-twap-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.00916
Opus 5 $0.00010 $0.00458
Sonnet 5 $0.00004 $0.00183
Haiku 4.5 $0.00002 $0.00092

Measured 9d ago against content hash 82b4590f9579, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

kraken-twap-execution 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 9d 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-twap-execution/SKILL.md · 102 lines

How it starts

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

kraken-twap-execution

Use this skill for:

  • breaking a large order into smaller time-spaced slices
  • reducing market impact and slippage on size
  • executing over minutes, hours, or days
  • tracking average fill price across slices

Core Concept

Time-Weighted Average Price (TWAP) splits a large order into N equal slices executed at regular intervals. The goal is to achieve an average price close to the time-weighted market average, reducing the impact a single large order would have on the book.

Parameters

  • Total volume: the full amount to buy or sell
  • Slices: number of child orders (e.g., 10)
  • Interval: time between slices (e.g., 60s, 300s)
  • Slice volume: total volume / slices

Paper TWAP Test

kraken workspace create sandbox --capital 50000 --mode paper -o json 2>/dev/null
export KRAKEN_WORKSPACE=sandbox

# Simulate 5 slices of 0.01 BTC each, 60s apart
kraken paper buy BTCUSD 0.01 -o json 2>/dev/null
# wait 60s
kraken paper buy BTCUSD 0.01 -o json 2>/dev/null
# wait 60s
kraken paper buy BTCUSD 0.01 -o json 2>/dev/null
# repeat...

kraken paper history -o json 2>/dev/null
kraken workspace status -o json 2>/dev/null

Live TWAP Loop

The agent runs this loop externally (the CLI does not have a built-in scheduler):

TOTAL_VOLUME=0.05
SLICES=5
SLICE_VOL=$(echo "scale=8; $TOTAL_VOLUME / $SLICES" | bc)
INTERVAL=60

for i in $(seq 1 $SLICES); do
  kraken order buy BTCUSD $SLICE_VOL --type market -o json 2>/dev/null
  [ $i -lt $SLICES ] && sleep $INTERVAL
done

Limit-Order TWAP Variant

Use limit orders at the current best bid/ask for potentially better fills:

PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].ask_price')
kraken order buy BTCUSD $SLICE_VOL --type limit --price $PRICE -o json 2>/dev/null

Check fill status before the next slice. Cancel unfilled orders and adjust:

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

Tracking Average Fill

After all slices, compute the volume-weighted average price from trade history:

Read the full file on GitHub · 102 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. 9d ago First seen · 102 lines · 20 tokens per session scan A 82b4590f9579

Subscribe to this mod's changes

kraken-twap-execution is a skill published in the GitHub repository krakenfx/kraken-cli (711 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 916 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.

Related

Other skills, from other repositories