Agent skill

Kraken Ws Streaming

by krakenfx in krakenfx/kraken-cli

Real-time data streaming via WebSocket for spot and futures.

MITAuto-check passedBackend & APIs

Install Kraken Ws Streaming

skills CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-ws-streaming -a claude-code

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

GitHub CLI
$ gh skill install krakenfx/kraken-cli kraken-ws-streaming --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-ws-streaming .claude/skills/kraken-ws-streaming && 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-ws-streaming
GitHub stars
751
Token cost
~1k tokens
SKILL.md length
290 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Real-time data streaming via WebSocket for spot and futures.

  • Tasks that involve Realtime and WebSockets
  • SKILL.md covers Output Format, Spot Public Streams, Spot Private Streams… and Futures Streams, plus 5 more sections
  • Calls jq
  • Tasks that involve Event-driven systems

What it does

Kraken Ws Streaming is an agent skill from krakenfx/kraken-cli. Real-time data streaming via WebSocket for spot and futures.

Its SKILL.md is about 1k 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 Realtime and WebSockets and Event-driven systems. 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 Realtime and WebSockets
  • Tasks that involve Event-driven systems

Example prompts

  • “/kraken-ws-streaming”

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

    No URLs in SKILL.md.

    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 Ws Streaming loads about 1k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 290 words of instructions outside code blocks.

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

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). 290 words, ~1,034 tokens.

Download SKILL.mdSave it as .claude/skills/kraken-ws-streaming/SKILL.md (or your agent's skills folder).
name
kraken-ws-streaming
description
Real-time data streaming via WebSocket for spot and futures.
version
1.0.0

kraken-ws-streaming

Use this skill for:

  • streaming live price, trade, and order book data
  • monitoring authenticated feeds (executions, balances)
  • futures-specific streaming (fills, positions, balances)
  • building event-driven agent loops

Output Format

All WebSocket commands emit NDJSON (one JSON object per line) to stdout. Parse line by line:

bash
kraken ws ticker BTC/USD -o json 2>/dev/null | while read -r line; do
  echo "$line" | jq -r '.data[0].last // empty'
done

Do not attempt to parse the full stream as a single JSON object.

Spot Public Streams

Ticker (best bid/ask, last price, volume):

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

Ticker with BBO trigger (fires only on best-bid/offer changes):

bash
kraken ws ticker BTC/USD --event-trigger bbo -o json 2>/dev/null

Trades:

bash
kraken ws trades BTC/USD -o json 2>/dev/null

Order book (L2, configurable depth):

bash
kraken ws book BTC/USD --depth 10 -o json 2>/dev/null

OHLC candles:

bash
kraken ws ohlc BTC/USD --interval 1 -o json 2>/dev/null

Instrument metadata:

bash
kraken ws instrument BTC/USD -o json 2>/dev/null

Spot Private Streams (Authenticated)

Execution updates (fills, order state changes):

bash
kraken ws executions -o json 2>/dev/null

Balance updates:

bash
kraken ws balances -o json 2>/dev/null

L3 order book:

bash
kraken ws level3 BTC/USD -o json 2>/dev/null

Futures Streams

Futures ticker:

bash
kraken futures ws ticker PF_XBTUSD -o json 2>/dev/null

Futures trades:

bash
kraken futures ws trades PF_XBTUSD -o json 2>/dev/null

Futures order book:

bash
kraken futures ws book PF_XBTUSD -o json 2>/dev/null

Futures Private Streams (Authenticated)

Fills:

bash
kraken futures ws fills -o json 2>/dev/null

Open orders:

bash
kraken futures ws open-orders -o json 2>/dev/null

Open positions:

bash
kraken futures ws open-positions -o json 2>/dev/null

Balances and margins:

bash
kraken futures ws balances -o json 2>/dev/null

Notifications:

bash
kraken futures ws notifications -o json 2>/dev/null

Account log:

bash
kraken futures ws account-log -o json 2>/dev/null

WebSocket Order Mutations (Spot)

Place, amend, and cancel orders over WebSocket for lower latency:

bash
kraken ws add-order -o json 2>/dev/null
kraken ws amend-order -o json 2>/dev/null
kraken ws cancel-order -o json 2>/dev/null
kraken ws cancel-all -o json 2>/dev/null
kraken ws batch-add -o json 2>/dev/null
kraken ws batch-cancel -o json 2>/dev/null

Dead man's switch over WebSocket:

bash
kraken ws cancel-after 60 -o json 2>/dev/null

Agent Loop Pattern

A typical event-driven agent reads from a stream and acts on each event:

bash
kraken ws ticker BTC/USD -o json 2>/dev/null | while read -r line; do
  LAST=$(echo "$line" | jq -r '.data[0].last // empty')
  [ -z "$LAST" ] && continue
  # Agent logic: compare price to thresholds, trigger actions
done

For multi-feed agents, run each stream in a background process and merge events.

Context Efficiency

  • Use --depth to limit order book snapshot size.
  • Use --event-trigger bbo on tickers to reduce noise.
  • Prefer streaming over high-frequency REST polling.
  • Close streams when no longer needed; each holds a connection.

Hard Rules

  • WebSocket order mutations are flagged as dangerous. Require human approval.
  • Never treat NDJSON stream output as a single JSON document.
  • Handle stream disconnects gracefully; the CLI reconnects automatically with paced exponential backoff and reconnect safety budgeting (up to 12 attempts per stream lifecycle).
  • 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-ws-streaming of krakenfx/kraken-cli.

Open the folder on GitHubat commit aa56e59

Compare with similar skills

Kraken Ws Streaming 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 Ws Streaming compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kraken Ws Streaming this skillkrakenfx/kraken-cli751—~1kAutomated safety check: PassMIT
Cryptofeed2025Emma/vibe-coding-cn23k1 repos~1.6kAutomated safety check: PassMIT
Cb Realtime APIBlkLeg/CircuitBreaker201—~1.7kAutomated safety check: PassMIT
HlivekitSamHennessy/hlive101—~1.1kAutomated safety check: PassMIT
AWS Lambda Microvmsawslabs/agent-plugins9161 repos~4.1kAutomated safety check: PassApache-2.0
Azure Messaging Webpubsubservice Pymicrosoft/skills3.1k5 repos~2kAutomated safety check: PassMIT

Similar skills

  • Cryptofeed

    2025Emma/vibe-coding-cn

    Cryptofeed - Real-time cryptocurrency market data feeds from 40+ exchanges.

    23k GitHub starsUsed in 1 repo~1.6k tokens
    Backend & APIsAuto-check passed
  • Cb Realtime API

    BlkLeg/CircuitBreaker

    How Circuit Breaker moves data between backend and frontend — the NATS internal bus, Redis pub/sub, the WebSocket stream endpoints and their first-message JWT handshake, SSE log/event streams, and…

    201 GitHub stars~1.7k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Hlivekit

    SamHennessy/hlive

    Use the hlivekit toolkit (github.com/SamHennessy/hlive/hlivekit) for common HLive needs — dynamic lists of components (ComponentList / hlivekit.List), giving an input focus, running server logic…

    101 GitHub stars~1.1k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • AWS Lambda Microvms

    awslabs/agent-plugins

    Official

    Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute environments that run inside a container with up to 8-hour lifetimes.

    916 GitHub starsUsed in 1 repo~4.1k tokens
    Backend & APIsAuto-check passed
  • Official

    Azure Web PubSub Service SDK for Python. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check passed
  • Centrifugo

    pedronauck/skills

    Centrifugo real-time messaging server expert for WebSocket PUB/SUB, channel management, JWT authentication, event proxying, and horizontal scaling with Redis/NATS.

    634 GitHub stars~3.1k tokensUpdated 26 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 Ws Streaming

What does Kraken Ws Streaming do?

Real-time data streaming via WebSocket for spot and futures. Kraken Ws Streaming is an agent skill from krakenfx/kraken-cli. Real-time data streaming via WebSocket for spot and futures.

When should I use Kraken Ws Streaming?

Kraken Ws Streaming fits situations like: tasks that involve Realtime and WebSockets; tasks that involve Event-driven systems.

How do I install Kraken Ws Streaming in Claude Code?

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

How do I install Kraken Ws Streaming in Codex?

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

Can I use Kraken Ws Streaming 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-ws-streaming -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-ws-streaming, .gemini/skills/kraken-ws-streaming, .github/skills/kraken-ws-streaming and .opencode/skills/kraken-ws-streaming in your project.

What does Kraken Ws Streaming need to run?

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

Does Kraken Ws Streaming access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kraken Ws Streaming 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 Ws Streaming use?

Kraken Ws Streaming 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 Ws Streaming use?

About 1k tokens (SKILL.md is roughly 4.1k 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 Ws Streaming?

Skills that share tags, products or a category with Kraken Ws Streaming: Cryptofeed (2025Emma/vibe-coding-cn, 23k stars), Cb Realtime API (BlkLeg/CircuitBreaker, 201 stars), Hlivekit (SamHennessy/hlive, 101 stars) and AWS Lambda Microvms (awslabs/agent-plugins, 916 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kraken Ws Streaming?

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.