Skip to content
Back to skills

Recipe Track Orderbook Depth

ASecurity

Monitor order book depth and bid-ask imbalance for liquidity signals.

  • 808 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 11, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add krakenfx/kraken-cli --skill recipe-track-orderbook-depth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recipe Track Orderbook Depth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recipe Track Orderbook Depth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/krakenfx-recipe-track-orderbook-depth/badge)](https://www.skillsdirectory.com/skills/krakenfx-recipe-track-orderbook-depth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: recipe-track-orderbook-depth
version: 1.0.0
description: "Monitor order book depth and bid-ask imbalance for liquidity signals."
metadata:
  openclaw:
    category: "recipe"
    domain: "market-data"
  requires:
    bins: ["kraken"]
    skills: ["kraken-market-intel", "kraken-ws-streaming"]
---

# Track Order Book Depth

> **PREREQUISITE:** Load the following skills to execute this recipe: `kraken-market-intel`, `kraken-ws-streaming`

Monitor order book depth for a pair and detect bid-ask imbalance as a liquidity signal.

## Steps

1. Get a snapshot: `kraken orderbook BTCUSD --count 25 -o json 2>/dev/null`
2. Sum bid volume (top 10 levels) and ask volume (top 10 levels)
3. Calculate imbalance ratio: bid_volume / (bid_volume + ask_volume)
   - Ratio > 0.6: strong bid-side (buying pressure)
   - Ratio < 0.4: strong ask-side (selling pressure)
4. Start streaming for continuous monitoring: `kraken ws book BTC/USD --depth 10 -o json 2>/dev/null`
5. Parse each update and recalculate imbalance
6. Alert when imbalance crosses threshold
7. Optionally compare across pairs (one call per pair): `kraken orderbook BTCUSD --count 10 -o json 2>/dev/null` then `kraken orderbook ETHUSD --count 10 -o json 2>/dev/null`

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`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.