kraken-futures-risk

kraken-futures-risk is a skill for Claude Code from krakenfx/kraken-cli. It costs 23 tokens per session (979 once invoked), scanned A, original, MIT.

Guidance for managing the risks of futures trading, where contracts use margin and may allow borrowed exposure. It covers leverage, funding payments, margin, position sizing, and liquidation risk.

In plain words
What is it for?
Use it to check or set leverage, monitor funding rates, track account health and margin, size positions, and assess liquidation risk.
Why use it?
It helps traders understand how borrowing, recurring funding costs, and a shrinking margin balance can force a position to close.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the kraken-cli plugin — 59 skills, 1 MCP server shipped together

Good fit Use it to check or set leverage, monitor funding rates, track account health and margin, size positions, and assess liquidation risk.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krakenfx/kraken-cli/kraken-futures-risk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add krakenfx/kraken-cli --skill kraken-futures-risk
Clone the repo
git clone --depth 1 https://github.com/krakenfx/kraken-cli

Made for: Claude Code.

Or install kraken-cli, the plugin that ships this one along with the rest of its 59 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kraken-futures-risk

README.md
[![agentmods](https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-futures-risk/github.svg)](https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-futures-risk)
Your own site
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-futures-risk"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-futures-risk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kraken-futures-risk

Your own site · 80×15
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-futures-risk"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-futures-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 979 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00979
Opus 5 $0.00012 $0.00490
Sonnet 5 $0.00005 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 12d ago against content hash ad88a21cebd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kraken-futures-risk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kraken-futures-risk/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kraken-futures-risk

Use this skill for:

  • checking and setting leverage
  • monitoring funding rates for carry cost
  • tracking margin and account health
  • position sizing relative to available margin
  • understanding liquidation risk

Leverage Management

Check current leverage preferences:

kraken futures leverage -o json 2>/dev/null

Check leverage for a specific symbol:

kraken futures leverage --symbol PF_XBTUSD -o json 2>/dev/null

Set maximum leverage (requires human approval):

kraken futures set-leverage PF_XBTUSD 5 -o json 2>/dev/null

Lower leverage reduces liquidation risk but requires more margin per position.

Funding Rate Monitoring

Check historical funding rates:

kraken futures historical-funding-rates PF_XBTUSD -o json 2>/dev/null

Funding rates are periodic payments between longs and shorts. Positive rates mean longs pay shorts; negative rates mean shorts pay longs. High sustained rates increase carry cost for directional positions.

Use funding rates to:

  • Estimate holding cost for a position over time.
  • Identify crowded trades (extreme funding rates).
  • Time entries when funding flips direction.

Account and Margin Health

Check account balances and margin:

kraken futures accounts -o json 2>/dev/null

Key fields: availableFunds, initialMargin, maintenanceMargin, unrealizedFunding, pnl.

Margin ratio = maintenanceMargin / equity. When this approaches 1.0, liquidation risk is high.

Position Monitoring

View all open positions:

kraken futures positions -o json 2>/dev/null

Stream position updates in real time:

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

Monitor P&L and size continuously. Set agent-side thresholds for:

  • Maximum unrealized loss per position
  • Maximum total portfolio loss
  • Maximum position size

PnL Preferences

Check P&L calculation method:

kraken futures pnl-preferences -o json 2>/dev/null

Set preference for a specific symbol:

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 157 lines · 23 tokens per session scan A ad88a21cebd6

Subscribe to this mod's changes

kraken-futures-risk is a skill published in the GitHub repository krakenfx/kraken-cli (715 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 979 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.