Agent skill

Kraken Rate Limits

by krakenfx in krakenfx/kraken-cli

Understand Kraken API rate limits and adapt agent behavior when limits are hit.

MITAuto-check passedBackend & APIs

Install Kraken Rate Limits

skills CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-rate-limits -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install krakenfx/kraken-cli kraken-rate-limits --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/krakenfx/kraken-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/kraken-rate-limits .claude/skills/kraken-rate-limits && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kraken-rate-limits
GitHub stars
751
Token cost
~994 tokens
SKILL.md length
368 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Understand Kraken API rate limits and adapt agent behavior when limits are hit.

  • Works in 3 steps: Spot REST Counter → Spot Trading Engine (per-pair) → Futures Cost Budget
  • Tasks that involve Rate limiting
  • SKILL.md covers How Rate Limiting Works, Kraken's Rate Limit Systems and Agent Strategies
  • Calls jq; reaches docs.kraken.com

What it does

Kraken Rate Limits is an agent skill from krakenfx/kraken-cli. Understand Kraken API rate limits and adapt agent behavior when limits are hit.

Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Rate limiting. The repository describes itself as: The first AI-native CLI for trading crypto, stocks, forex, and derivatives. The licence is MIT.

When your agent uses it

  • Tasks that involve Rate limiting

Example prompts

  • “/kraken-rate-limits”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Spot REST Counter
  2. Spot Trading Engine (per-pair)
  3. Futures Cost Budget

What it can do on your machine

Read from SKILL.md and the folder at commit aa56e59. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • docs.kraken.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kraken Rate Limits loads about 994 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 368 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~994

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from krakenfx/kraken-cli at commit aa56e59, republished under its MIT licence (© krakenfx). 368 words, ~994 tokens.

Download SKILL.mdSave it as .claude/skills/kraken-rate-limits/SKILL.md (or your agent's skills folder).
name
kraken-rate-limits
description
Understand Kraken API rate limits and adapt agent behavior when limits are hit.
version
2.0.0

kraken-rate-limits

Use this skill for:

  • understanding Kraken's rate limit systems (Spot REST, trading engine, Futures)
  • adapting agent behavior when rate limit errors occur
  • choosing optimal request patterns (WebSocket vs REST, batch vs individual)

How Rate Limiting Works

The CLI does not pre-throttle or retry rate-limited requests. The Kraken API server enforces rate limits. When a limit is hit, the CLI returns the error immediately with structured fields:

json
{
  "error": "rate_limit",
  "message": "Spot REST API rate limit exceeded ...",
  "suggestion": "Wait 5-15 seconds before retrying. ...",
  "retryable": true,
  "docs_url": "https://docs.kraken.com/api/docs/guides/spot-rest-ratelimits/"
}

Read the suggestion field to understand what limit was hit and how to adapt.

Kraken's Rate Limit Systems

1. Spot REST Counter

Counter-decay model. Each call adds to a counter; the counter decays over time.

TierMax CounterDecay Rate
Starter150.33/s
Intermediate200.5/s
Pro201.0/s

Most calls cost 1 point. Ledgers, trade history, and query-ledgers cost 2. AddOrder and CancelOrder are excluded from this counter (they use the trading engine limiter instead).

Docs: https://docs.kraken.com/api/docs/guides/spot-rest-ratelimits/

2. Spot Trading Engine (per-pair)

Separate per-pair counter with penalties for short-lived orders:

TierThresholdDecay Rate
Starter601/s
Intermediate1252.34/s
Pro1803.75/s

Cancel within 5 seconds costs +8, amend within 5 seconds costs +3. Let orders rest longer to reduce cost.

Docs: https://docs.kraken.com/api/docs/guides/spot-ratelimits

3. Futures Cost Budget

Cost-based system with two separate pools:

  • /derivatives endpoints: budget of 500 per 10 seconds. sendorder costs 10, editorder costs 10, cancelorder costs 10, batchorder costs 9 + batch size, cancelallorders costs 25, accounts costs 2.
  • /history endpoints: pool of 100 tokens, refills at 100 per 10 minutes.

Docs: https://docs.kraken.com/api/docs/guides/futures-rate-limits/

Show full SKILL.md (124 more words)Show less

Agent Strategies

Prefer WebSocket over REST polling

Streaming does not consume REST rate limit points. For real-time data, always prefer:

bash
kraken ws ticker BTC/USD -o json 2>/dev/null
Use batch orders

Batch orders cost less per-order on both Spot and Futures. Up to 15 orders per batch on Spot.

Read the suggestion field

When a rate limit error is returned, the suggestion field contains the specific limit that was hit and concrete advice. Parse it and adapt:

bash
RESULT=$(kraken balance -o json 2>/dev/null)
if [ $? -ne 0 ]; then
  CATEGORY=$(echo "$RESULT" | jq -r '.error // "unknown"')
  if [ "$CATEGORY" = "rate_limit" ]; then
    SUGGESTION=$(echo "$RESULT" | jq -r '.suggestion // "Wait and retry"')
    DOCS=$(echo "$RESULT" | jq -r '.docs_url // ""')
    echo "Rate limited. $SUGGESTION"
    echo "Read more: $DOCS"
  fi
fi
Multi-command budget planning

Before executing a sequence, estimate total cost:

bash
# This sequence costs ~5 points on the Spot REST counter:
kraken ticker BTCUSD -o json 2>/dev/null       # 1 point
kraken balance -o json 2>/dev/null             # 1 point
kraken open-orders -o json 2>/dev/null         # 1 point
kraken trades-history -o json 2>/dev/null      # 2 points (heavy call)

Leave headroom for retries and unexpected calls.

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.

© krakenfx, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/kraken-rate-limits of krakenfx/kraken-cli.

Open the folder on GitHubat commit aa56e59

Compare with similar skills

Kraken Rate Limits next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kraken Rate Limits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kraken Rate Limits this skillkrakenfx/kraken-cli751—~994Automated safety check: PassMIT
Add Hosted Keysimstudioai/sim30k—~3.6kAutomated safety check: PassApache-2.0
Upstash Ratelimit TSupstash/ratelimit-js2k—~313Automated safety check: PassMIT
Repo2skillzhangyanxs/repo2skill246—~3.6kAutomated safety check: PassNone
Better Auth Security Best PracticesEpicenterHQ/epicenter4.8k—~896Automated safety check: PassCustom licence
Dload Fetch Toolphp-internal/dload105—~1.1kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Add Hosted Key

    simstudioai/sim

    Add hosted API key support to a tool so Sim provides the key (metered and billed to the workspace) when a user has not brought their own.

    30k GitHub stars~3.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Upstash Ratelimit TS

    upstash/ratelimit-js

    Official

    Lightweight guidance for using the Redis Rate Limit TypeScript SDK, including setup steps, basic usage, and pointers to advanced algorithm, features, pricing, and traffic‑protection docs.

    2k GitHub stars~313 tokensUpdated 15 days ago
    Backend & APIsAuto-check passed
  • Repo2skill

    zhangyanxs/repo2skill

    Convert GitHub/GitLab/Gitee repositories into comprehensive OpenCode Skills using embedded LLM calls with multiple mirrors and rate limit handling

    246 GitHub stars~3.6k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Dload Fetch Tool

    php-internal/dload

    Get a CLI tool — native binary or PHAR — from a GitHub release into a project folder with dload (vendor/bin/dload).

    105 GitHub stars~1.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Gateway

    itsmostafa/aws-agent-skills

    AWS API Gateway for REST and HTTP API management. An agent skill from itsmostafa/aws-agent-skills.

    1.2k GitHub stars~2.2k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed

More from krakenfx/kraken-cli

All 59 skills in this repo
  • Kraken Alert Patterns

    krakenfx/kraken-cli

    Price alerts, threshold monitoring, and notification triggers for agents.

    751 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Autonomy Levels

    krakenfx/kraken-cli

    Progress from manual trading to full agent autonomy with controlled risk at each level.

    751 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Basis Trading

    krakenfx/kraken-cli

    Capture the spot-futures price spread with delta-neutral basis trades.

    751 GitHub stars~802 tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Dca Strategy

    krakenfx/kraken-cli

    Dollar cost averaging with scheduled buys and performance tracking.

    751 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Earn Staking

    krakenfx/kraken-cli

    Discover staking strategies, allocate funds, and track earn positions.

    751 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Kraken Error Recovery

    krakenfx/kraken-cli

    Handle order failures, network errors, and duplicate submissions safely.

    751 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Kraken Rate Limits

What does Kraken Rate Limits do?

Understand Kraken API rate limits and adapt agent behavior when limits are hit. Kraken Rate Limits is an agent skill from krakenfx/kraken-cli. Understand Kraken API rate limits and adapt agent behavior when limits are hit.

When should I use Kraken Rate Limits?

Kraken Rate Limits fits situations like: tasks that involve Rate limiting.

How do I install Kraken Rate Limits in Claude Code?

Run `npx skills add krakenfx/kraken-cli --skill kraken-rate-limits -a claude-code`. Or copy the skill folder (skills/kraken-rate-limits in krakenfx/kraken-cli) into .claude/skills/kraken-rate-limits in your project. Claude Code loads it when a task matches its description.

How do I install Kraken Rate Limits in Codex?

Run `npx skills add krakenfx/kraken-cli --skill kraken-rate-limits -a codex`. Or copy the skill folder (skills/kraken-rate-limits in krakenfx/kraken-cli) into .agents/skills/kraken-rate-limits in your project. Codex loads it when a task matches its description.

Can I use Kraken Rate Limits in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add krakenfx/kraken-cli --skill kraken-rate-limits -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kraken-rate-limits, .gemini/skills/kraken-rate-limits, .github/skills/kraken-rate-limits and .opencode/skills/kraken-rate-limits in your project.

What does Kraken Rate Limits need to run?

Going by SKILL.md and its folder, Kraken Rate Limits needs the command-line tools its instructions call (jq).

Does Kraken Rate Limits access the network?

SKILL.md names 1 domain. In commands or code: docs.kraken.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Kraken Rate Limits safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kraken Rate Limits use?

Kraken Rate Limits is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kraken Rate Limits use?

About 994 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kraken Rate Limits?

Skills that share tags, products or a category with Kraken Rate Limits: Add Hosted Key (simstudioai/sim, 30k stars), Upstash Ratelimit TS (upstash/ratelimit-js, 2k stars), Repo2skill (zhangyanxs/repo2skill, 246 stars) and Better Auth Security Best Practices (EpicenterHQ/epicenter, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kraken Rate Limits?

krakenfx (a GitHub organization) maintains it in krakenfx/kraken-cli, which has 751 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on August 7, 2026.

Source: krakenfx/kraken-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.