krakenfx/kraken-cli/kraken-error-recovery
Claude Code and agent skill by krakenfx/kraken-cli
- community
Checking that the SKILL.md file is still in the repository.
Handle order failures, network errors, and duplicate submissions safely.
Install
npx vskill@latest install krakenfx/kraken-cli/kraken-error-recoverySKILL.md
kraken-error-recovery
Use this skill for:
- recovering from failed order submissions
- preventing duplicate orders after network errors
- handling partial fills and stuck states
- building resilient agent loops
Error Categories
Parse the .error field from the JSON response:
| Category | Meaning | Recovery | |
|---|---|---|---|
auth | Credentials invalid or expired | Re-authenticate, do not retry | |
rate_limit | Too many requests | Read suggestion and docs_url fields, adapt strategy | |
network | Connection failed, or the response was lost after sending (verify_first: true) | Retry with backoff; with verify_first, see Duplicate Order Prevention | |
validation | Invalid request parameters | Fix inputs, do not retry unchanged | |
api | Exchange-side rejection | Inspect error message, adjust request |
Duplicate Order Prevention
After a network error during order submission ("verify_first": true), the order may or may not have reached the exchange. Check before resubmitting:
If the order appears in open-orders, do not resubmit. If absent:
If the order filled immediately, it appears in trades. Only resubmit if the order is absent from both.
Client Order ID for Idempotency
Use --cl-ord-id to tag orders with a unique identifier:
If the submission fails, query by client order ID to check if it reached the exchange:
Cancel by client order ID if needed:
Network Error Recovery Pattern
Rate Limit Recovery
The CLI returns rate limit errors immediately with no internal retry. The error includes actionable fields for the agent to decide next steps.
On rate_limit error:
- Read the
suggestionfield for specific guidance on what limit was hit and how to adapt. - Read the
docs_urlfield for the relevant Kraken documentation. - Decide whether to retry (and when), reduce request frequency, or switch to WebSocket streaming for real-time data.
- Resume with a single test call before continuing the loop.
If status succeeds, the rate limit has cleared.
Partial Fill Handling
Limit orders may partially fill. Check order status:
The result is keyed by txid. Fields: volume (requested volume), volume_executed (filled volume), status (open, closed, canceled, expired, ...). query-orders, open-orders and closed-orders publish the same order shape.
If partially filled and the remaining volume is needed, amend or place a new order for the remaining amount.
Stuck Order Resolution
An order stuck in open state that should have filled or been canceled:
- Check the order:
``bash kraken query-orders <TXID> -o json 2>/dev/null ``
- If still open, cancel:
``bash kraken order cancel <TXID> -o json 2>/dev/null ``
- Verify cancellation:
``bash kraken open-orders -o json 2>/dev/null ``
Hard Rules
- Never blind-retry an order after a network error; always check state first.
- Resubmitting, amending or cancelling a live order needs the same explicit user approval as the original order, unless the agent runs at autonomy level 4+.
- Use
--cl-ord-idfor all orders in automated loops. - On auth errors, stop all activity and re-authenticate.
- Log every error and recovery action for post-session audit.
- 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 reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kraken-error-recovery/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-error-recovery)