Agent Skillskrakenfx/kraken-cli › kraken-funding-carry

kraken-funding-carry

GitHub

Kraken永续合约资金费率套利技能,通过扫描费率、识别套利机会、执行对冲头寸及监控收益,实现市场中性下的资金费收取。

skills/kraken-funding-carry/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

需要扫描多个永续合约的资金费率以寻找高收益机会 需要建立或管理现货与期货的对冲套利头寸

Install

npx skills add krakenfx/kraken-cli --skill kraken-funding-carry -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@kraken-funding-carry

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill kraken-funding-carry -a claude-code -g -y

安装 repo 全部 skill

npx skills add krakenfx/kraken-cli --all -g -y

预览 repo 内 skill

npx skills add krakenfx/kraken-cli --list

SKILL.md

Frontmatter
{
    "name": "kraken-funding-carry",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "category": "finance"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-futures-trading",
                "kraken-futures-risk"
            ]
        }
    },
    "description": "Earn funding rate payments by positioning on the paying side of perpetuals."
}

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

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

Exit

Close both legs when carry becomes unprofitable:

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

Version History

  • aa56e59 Current 2026-08-20 04:44
  • aa32814 2026-07-25 10:28

Same Skill Collection

skills/kraken-alert-patterns/SKILL.md
skills/kraken-autonomy-levels/SKILL.md
skills/kraken-basis-trading/SKILL.md
skills/kraken-dca-strategy/SKILL.md
skills/kraken-earn-staking/SKILL.md
skills/kraken-error-recovery/SKILL.md
skills/kraken-fee-optimization/SKILL.md
skills/kraken-funding-ops/SKILL.md
skills/kraken-futures-risk/SKILL.md
skills/kraken-grid-trading/SKILL.md
skills/kraken-lab-experiment/SKILL.md
skills/kraken-liquidation-guard/SKILL.md
skills/kraken-market-intel/SKILL.md
skills/kraken-mcp-integration/SKILL.md
skills/kraken-multi-pair/SKILL.md
skills/kraken-order-types/SKILL.md
skills/kraken-paper-strategy/SKILL.md
skills/kraken-paper-to-live/SKILL.md
skills/kraken-playground/SKILL.md
skills/kraken-portfolio-intel/SKILL.md
skills/kraken-rate-limits/SKILL.md
skills/kraken-rebalancing/SKILL.md
skills/kraken-risk-operations/SKILL.md
skills/kraken-setup/SKILL.md
skills/kraken-spot-execution/SKILL.md
skills/kraken-stop-take-profit/SKILL.md
skills/kraken-subaccount-ops/SKILL.md
skills/kraken-tax-export/SKILL.md
skills/kraken-twap-execution/SKILL.md
skills/kraken-ws-streaming/SKILL.md
skills/recipe-basis-trade-entry/SKILL.md
skills/recipe-daily-pnl-report/SKILL.md
skills/recipe-drawdown-circuit-breaker/SKILL.md
skills/recipe-earn-yield-compare/SKILL.md
skills/recipe-emergency-flatten/SKILL.md
skills/recipe-fee-tier-progress/SKILL.md
skills/recipe-funding-rate-scan/SKILL.md
skills/recipe-futures-hedge-spot/SKILL.md
skills/recipe-launch-grid-bot/SKILL.md
skills/recipe-morning-market-brief/SKILL.md
skills/recipe-multi-pair-breakout-watch/SKILL.md
skills/recipe-paper-strategy-backtest/SKILL.md
skills/recipe-playground-dca-triggered/SKILL.md
skills/recipe-playground-dca/SKILL.md
skills/recipe-playground-price-alert/SKILL.md
skills/recipe-playground-rebalance/SKILL.md
skills/recipe-playground-webhook/SKILL.md
skills/recipe-portfolio-snapshot-csv/SKILL.md
skills/recipe-price-level-alerts/SKILL.md

Metadata

Files
0
Version
aa56e59
Hash
c4c95af0
Indexed
2026-07-25 10:28

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 11:16
浙ICP备14020137号-1 $Гость$