kraken-funding-carry

Earn funding rate payments by positioning on the paying side of perpetuals.

23 stars

Best use case

kraken-funding-carry is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Earn funding rate payments by positioning on the paying side of perpetuals.

Teams using kraken-funding-carry should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/kraken-official-funding-carry/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kraken-official-funding-carry/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/kraken-official-funding-carry/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How kraken-funding-carry Compares

Feature / Agentkraken-funding-carryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Earn funding rate payments by positioning on the paying side of perpetuals.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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

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

```bash
# 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).

```bash
# 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:

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

## Monitoring

Track funding accrual:

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

The `unrealizedFunding` field shows accumulated but unsettled funding.

Watch for funding rate flips:

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

If the rate flips direction, the position switches from collecting to paying. Exit or reverse.

## Exit

Close both legs when carry becomes unprofitable:

```bash
kraken futures order buy PF_XBTUSD 1 --reduce-only -o json 2>/dev/null
kraken order sell BTCUSD 0.01 --type market -o json 2>/dev/null
```

## Hard Rules

- Always hedge carry positions to avoid directional exposure.
- Monitor funding rates continuously; a flip turns profit into loss.
- Monitor margin on the futures leg; price moves require margin even when hedged.
- Requires human approval for all entries and exits.

Related Skills

Kraken Crypto Skill

23
from jiayaoqijia/cryptoskill

Use the kraken_cli.py wrapper to query your Kraken account.

openclaw_kraken

23
from jiayaoqijia/cryptoskill

Use a Bash CLI to query Kraken Spot and Futures APIs, inspect account state, run guarded trading and funding actions, and work with Kraken websocket payloads using OpenClaw-managed secrets.

kraken-ws-streaming

23
from jiayaoqijia/cryptoskill

Real-time data streaming via WebSocket for spot and futures.

kraken-twap-execution

23
from jiayaoqijia/cryptoskill

Execute large orders as time-weighted slices to reduce market impact.

kraken-tax-export

23
from jiayaoqijia/cryptoskill

Export trade history, ledgers, and cost basis data for tax reporting.

kraken-subaccount-ops

23
from jiayaoqijia/cryptoskill

Create and manage subaccounts with inter-account transfers.

kraken-stop-take-profit

23
from jiayaoqijia/cryptoskill

Manage stop-loss and take-profit orders for risk-bounded positions.

kraken-spot-execution

23
from jiayaoqijia/cryptoskill

Execute spot orders with validation, confirmation gates, and post-trade checks.

kraken-shared

23
from jiayaoqijia/cryptoskill

Shared runtime contract for kraken-cli: auth, invocation, parsing, and safety.

kraken-risk-operations

23
from jiayaoqijia/cryptoskill

Operational risk controls for live agent trading sessions.

recipe-funding-rate-scan

23
from jiayaoqijia/cryptoskill

Scan perpetual contracts for attractive funding rate carry opportunities.

kraken-rebalancing

23
from jiayaoqijia/cryptoskill

Portfolio rebalancing to maintain target allocations across assets.