Kraken official recipe track orderbook depth

From jiayaoqijia/cryptoskill · View interactive version

Kraken official recipe track orderbook depth is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Monitor order book depth and bid-ask imbalance for liquidity signals.

How to use this skill

Skill file

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)
  1. Start streaming for continuous monitoring: kraken ws book BTC/USD --depth 10 -o json 2>/dev/null
  2. Parse each update and recalculate imbalance
  3. Alert when imbalance crosses threshold
  4. 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.