recipe-futures-hedge-spot
Hedge a spot holding with a short futures position to lock in value.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kraken-official-recipe-futures-hedge-spot/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How recipe-futures-hedge-spot Compares
| Feature / Agent | recipe-futures-hedge-spot | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
KuCoin Spot trading using the KuCoin API. Authentication requires API Key, API Secret, and Passphrase.
futures-trading
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
Execute spot orders with validation, confirmation gates, and post-trade checks.
recipe-withdrawal-to-cold-storage
Safely withdraw funds to a pre-approved cold storage address.
recipe-weekly-rebalance
Run a weekly portfolio rebalance to maintain target asset allocations.
recipe-trailing-stop-runner
Ride a trend with a trailing stop that locks in profits on reversal.
recipe-track-orderbook-depth
Monitor order book depth and bid-ask imbalance for liquidity signals.
recipe-subaccount-capital-rotation
Rotate capital between subaccounts based on strategy performance.
recipe-start-dca-bot
Set up and run a dollar cost averaging bot from paper test to live.
recipe-price-level-alerts
Set up price level alerts that notify when key levels are crossed.
recipe-portfolio-snapshot-csv
Export a portfolio snapshot with balances and valuations to CSV.
recipe-paper-strategy-backtest
Backtest a trading strategy using paper trading against live prices.