recipe-futures-hedge-spot

Hedge a spot holding with a short futures position to lock in value.

23 stars

Best use case

recipe-futures-hedge-spot is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Hedge a spot holding with a short futures position to lock in value.

Teams using recipe-futures-hedge-spot 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-recipe-futures-hedge-spot/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kraken-official-recipe-futures-hedge-spot/SKILL.md"

Manual Installation

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

How recipe-futures-hedge-spot Compares

Feature / Agentrecipe-futures-hedge-spotStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Hedge a spot holding with a short futures position to lock in value.

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

# Hedge Spot with Futures

> **PREREQUISITE:** Load the following skills to execute this recipe: `kraken-spot-execution`, `kraken-futures-trading`, `kraken-futures-risk`

Protect a spot BTC holding from downside by shorting an equivalent futures position.

> **CAUTION:** This locks in current value but also caps upside. Futures margin requirements apply.

## Steps

1. Check spot balance: `kraken balance -o json 2>/dev/null`
2. Get spot price: `kraken ticker BTCUSD -o json 2>/dev/null`
3. Get futures price: `kraken futures ticker PF_XBTUSD -o json 2>/dev/null`
4. Check futures margin availability: `kraken futures accounts -o json 2>/dev/null`
5. Calculate matching futures size: `BTC_BAL=$(kraken balance -o json 2>/dev/null | jq -r '.XXBT // .XBT // "0"')` and `FUT_PRICE=$(kraken futures ticker PF_XBTUSD -o json 2>/dev/null | jq -r '.ticker.last')`
6. Open short futures position (requires human approval): `kraken futures order sell PF_XBTUSD $BTC_BAL --type limit --price $FUT_PRICE -o json 2>/dev/null`
7. Verify the position: `kraken futures positions -o json 2>/dev/null`
8. Enable dead man's switch: `kraken futures cancel-after 3600 -o json 2>/dev/null`
9. Monitor margin: `kraken futures accounts -o json 2>/dev/null`
10. To remove hedge, close futures: `kraken futures order buy PF_XBTUSD $BTC_BAL --reduce-only -o json 2>/dev/null`

Related Skills

spot

23
from jiayaoqijia/cryptoskill

KuCoin Spot trading using the KuCoin API. Authentication requires API Key, API Secret, and Passphrase.

futures-trading

23
from jiayaoqijia/cryptoskill

KuCoin Futures trading using the KuCoin API. Futures market data, orders, positions, and funding fees. Authentication requires API Key, API Secret, and Passphrase.

kraken-spot-execution

23
from jiayaoqijia/cryptoskill

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

recipe-withdrawal-to-cold-storage

23
from jiayaoqijia/cryptoskill

Safely withdraw funds to a pre-approved cold storage address.

recipe-weekly-rebalance

23
from jiayaoqijia/cryptoskill

Run a weekly portfolio rebalance to maintain target asset allocations.

recipe-trailing-stop-runner

23
from jiayaoqijia/cryptoskill

Ride a trend with a trailing stop that locks in profits on reversal.

recipe-track-orderbook-depth

23
from jiayaoqijia/cryptoskill

Monitor order book depth and bid-ask imbalance for liquidity signals.

recipe-subaccount-capital-rotation

23
from jiayaoqijia/cryptoskill

Rotate capital between subaccounts based on strategy performance.

recipe-start-dca-bot

23
from jiayaoqijia/cryptoskill

Set up and run a dollar cost averaging bot from paper test to live.

recipe-price-level-alerts

23
from jiayaoqijia/cryptoskill

Set up price level alerts that notify when key levels are crossed.

recipe-portfolio-snapshot-csv

23
from jiayaoqijia/cryptoskill

Export a portfolio snapshot with balances and valuations to CSV.

recipe-paper-strategy-backtest

23
from jiayaoqijia/cryptoskill

Backtest a trading strategy using paper trading against live prices.