krakenfx/kraken-cli/kraken-twap-execution
Claude Code and agent skill by krakenfx/kraken-cli
- community
Checking that the SKILL.md file is still in the repository.
Execute large orders as time-weighted slices to reduce market impact.
Install
npx vskill@latest install krakenfx/kraken-cli/kraken-twap-executionSKILL.md
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
Live TWAP Loop
The agent runs this loop externally (the CLI does not have a built-in scheduler). As written, the loop sends every slice without asking anyone, so run it only at autonomy level 4+. Below that, run one validated slice per approved call and wait the interval between calls. Live orders run outside the paper workspace, so clear it first:
Limit-Order TWAP Variant
Use limit orders at the current best bid/ask for potentially better fills:
Check fill status before the next slice. Cancel unfilled orders and adjust:
Tracking Average Fill
After all slices, compute the volume-weighted average price from trade history:
Sum (price * volume) for each fill, divide by total volume filled.
Rate Limit Awareness
The CLI does not pre-throttle requests. If a slice submission hits a rate limit, the error includes a suggestion field with tier-specific limits and a docs_url pointing to Kraken's documentation. On rate_limit error, pause the loop, read the suggestion, and adjust the interval before resuming. A 60-second interval between slices is well within budget for all tiers. For shorter intervals, consult the kraken-rate-limits skill for per-tier counter costs and decay rates.
Hard Rules
- Each live slice requires human approval unless operating at autonomy level 4+.
- Track cumulative fill volume and stop if total exceeds target (handle partial fills).
- On error, pause the loop rather than skipping the slice; resume after recovery.
- Log every slice for post-execution analysis.
- 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kraken-twap-execution/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 10
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/krakenfx/kraken-cli/kraken-twap-execution)