krakenfx/kraken-cli/kraken-alert-patterns

Claude Code and agent skill by krakenfx/kraken-cli

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

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

Install

npx vskill@latest install krakenfx/kraken-cli/kraken-alert-patterns

SKILL.md

kraken-alert-patterns

Use this skill for:

  • monitoring price levels and triggering alerts
  • detecting spread widening, volume spikes, and volatility shifts
  • watching account state changes (fills, balance drops)
  • building notification-driven agent workflows

Price Alert (Polling)

Check price at intervals and compare against thresholds:

bash
PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].last_price')
# Agent compares $PRICE to upper/lower thresholds
# If breached, notify the user

Price Alert (Streaming)

More efficient for continuous monitoring. The agent reads the stream and fires when conditions are met:

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
# Compare against thresholds, break or notify on breach
done

Spread Alert

Detect when the bid-ask spread widens beyond a threshold (liquidity warning):

bash
kraken ws ticker BTC/USD --event-trigger bbo -o json 2>/dev/null | while read -r line; do
ASK=$(echo "$line" | jq -r '.data[0].ask // empty')
BID=$(echo "$line" | jq -r '.data[0].bid // empty')
[ -z "$ASK" ] || [ -z "$BID" ] && continue
SPREAD=$(echo "$ASK - $BID" | bc)
# Alert if spread exceeds threshold
done

Volume Spike Detection

Compare current 24h volume against a baseline:

bash
kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].volume_24h'
# Agent compares to historical average
# Alert if volume > 2x baseline

Volatility Alert (OHLC-Based)

Read recent candles and compute range or standard deviation:

bash
kraken ohlc BTCUSD --interval 60 -o json 2>/dev/null
# Agent calculates high-low range per candle
# Alert if range exceeds threshold

Balance Change Alert

Monitor for unexpected balance changes:

bash
INITIAL=$(kraken balance -o json 2>/dev/null | jq -r '.USD // "0"')
# On each check:
CURRENT=$(kraken balance -o json 2>/dev/null | jq -r '.USD // "0"')
# Alert if |CURRENT - INITIAL| exceeds threshold

Streaming alternative:

bash
kraken ws balances -o json 2>/dev/null
# Each line is a balance update event

Fill Notification

Alert on trade executions:

bash
kraken ws executions -o json 2>/dev/null | while read -r line; do
TYPE=$(echo "$line" | jq -r '.data[0].exec_type // empty')
[ "$TYPE" = "trade" ] && echo "Fill: $line"
done

Futures Alerts

Monitor futures positions for margin or P&L thresholds:

bash
kraken futures positions -o json 2>/dev/null
# Agent checks unrealized P&L against stop-loss threshold

Stream futures balance changes:

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

Futures notifications (margin calls, liquidation warnings):

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

Multi-Pair Alert

Watch several pairs and alert on the first one that hits a condition:

bash
kraken ws ticker BTC/USD ETH/USD SOL/USD -o json 2>/dev/null | while read -r line; do
PAIR=$(echo "$line" | jq -r '.data[0].symbol // empty')
LAST=$(echo "$line" | jq -r '.data[0].last // empty')
[ -z "$PAIR" ] || [ -z "$LAST" ] && continue
# Check pair-specific thresholds
done

Notification Delivery

The CLI outputs alerts to stdout. The agent is responsible for delivering notifications through its own channels (Slack, email, push notification, or presenting to the user in chat).

Pattern Summary

ConditionMethodCommand
Price crosses levelStreamws ticker <PAIR>
Spread widensStreamws ticker <PAIR> --event-trigger bbo
Volume spikePollticker <PAIR>
Balance changeStreamws balances
Trade fillStreamws executions
Futures marginStreamfutures ws balances
Futures notificationStreamfutures ws notifications

Hard Rules

  • Alerts are informational; they do not execute trades automatically.
  • Prefer streaming over high-frequency polling to reduce API load.
  • Close streams when monitoring is no longer needed.
  • 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/krakenfx/kraken-cli/kraken-alert-patterns/badge)](https://verified-skill.com/skills/krakenfx/kraken-cli/kraken-alert-patterns)

Something wrong with this skill or its page? Tell us.