kraken-funding-carry

kraken-funding-carry is a skill for Claude Code from krakenfx/kraken-cli. It costs 21 tokens per session (754 once invoked), scanned A, original, MIT.

A set of trading procedures for a funding-carry strategy using perpetual futures, a type of futures contract with no expiry date, and spot assets.

In plain words
What is it for?
Use it to compare perpetual funding rates, identify the side receiving payments, enter hedged positions, and monitor the resulting carry yield.
Why use it?
It explains how to look for funding payments and hedge the market exposure with a matching spot position. This can reduce directional exposure, though it does not remove trading risk.

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 compare perpetual funding rates, identify the side receiving payments, enter hedged positions, and monitor the resulting carry yield.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krakenfx/kraken-cli/kraken-funding-carry
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-funding-carry
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-funding-carry

README.md
[![agentmods](https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-funding-carry/github.svg)](https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-funding-carry)
Your own site
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-funding-carry"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-funding-carry/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-funding-carry

Your own site · 80×15
<a href="https://agentmods.dev/skills/krakenfx/kraken-cli/kraken-funding-carry"><img src="https://agentmods.dev/badge/skills/krakenfx/kraken-cli/kraken-funding-carry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 754 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.00021 $0.00754
Opus 5 $0.00010 $0.00377
Sonnet 5 $0.00004 $0.00151
Haiku 4.5 $0.00002 $0.00075

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

Security

Grade A, and why

kraken-funding-carry 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-funding-carry/SKILL.md · 106 lines

How it starts

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

kraken-funding-carry

Use this skill for:

  • scanning funding rates across perpetual contracts
  • identifying carry opportunities (collect funding by being on the receiving side)
  • entering hedged carry positions (spot hedge + futures position)
  • monitoring ongoing carry yield

Core Concept

Perpetual futures charge periodic funding payments between longs and shorts. When the funding rate is positive, longs pay shorts. When negative, shorts pay longs. A carry strategy positions on the receiving side and hedges with spot to remain market-neutral.

Scan Funding Rates

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

Compare rates across contracts to find the highest yield.

Carry Entry (Positive Funding)

When funding is positive (longs pay shorts):

  1. Short the perpetual.
  2. Buy spot as a hedge.
# Hedge: buy spot
kraken order buy BTCUSD 0.01 --type market -o json 2>/dev/null

# Carry: short perpetual (collect funding)
kraken futures order sell PF_XBTUSD 1 -o json 2>/dev/null

Carry Entry (Negative Funding)

When funding is negative (shorts pay longs):

  1. Long the perpetual.
  2. Sell spot as a hedge (or skip hedge if already holding).
# Carry: long perpetual (collect funding)
kraken futures order buy PF_XBTUSD 1 -o json 2>/dev/null

# Hedge: sell spot
kraken order sell BTCUSD 0.01 --type market -o json 2>/dev/null

Yield Calculation

Annualized yield = funding_rate * funding_periods_per_year * 100.

Kraken funding periods are typically every 4 or 8 hours (varies by contract). Check contract specs:

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

Monitoring

Track funding accrual:

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

The unrealizedFunding field shows accumulated but unsettled funding.

Watch for funding rate flips:

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

Read the full file on GitHub · 106 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 · 106 lines · 21 tokens per session scan A c4c95af08168

Subscribe to this mod's changes

kraken-funding-carry is a skill published in the GitHub repository krakenfx/kraken-cli (715 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 754 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.