recipe-basis-trade-entry

Enter a spot-futures basis trade when the premium exceeds a target threshold.

23 stars

Best use case

recipe-basis-trade-entry is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Enter a spot-futures basis trade when the premium exceeds a target threshold.

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

Manual Installation

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

How recipe-basis-trade-entry Compares

Feature / Agentrecipe-basis-trade-entryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Enter a spot-futures basis trade when the premium exceeds a target threshold.

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

# Basis Trade Entry

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

Enter a delta-neutral basis trade (long spot, short futures) when the basis premium is attractive.

> **CAUTION:** Both legs must fill to be market-neutral. A single-leg fill is a directional bet.

## Steps

1. Get spot price: `SPOT=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].c[0]')`
2. Get futures price: `FUTURES=$(kraken futures ticker PF_XBTUSD -o json 2>/dev/null | jq -r '.ticker.last')`
3. Calculate basis: `BASIS=$(echo "scale=4; ($FUTURES - $SPOT) / $SPOT * 100" | bc)`
4. If basis < target threshold (e.g., 0.5% annualized), skip
5. Check spot balance for capital: `kraken balance -o json 2>/dev/null`
6. Check futures margin availability: `kraken futures accounts -o json 2>/dev/null`
7. Calculate matched position sizes
8. Execute spot buy (requires human approval): `kraken order buy BTCUSD 0.01 --type limit --price $SPOT -o json 2>/dev/null`
9. Execute futures short: `kraken futures order sell PF_XBTUSD 1 --type limit --price $FUTURES -o json 2>/dev/null`
10. Verify both legs filled: `kraken open-orders -o json 2>/dev/null` + `kraken futures open-orders -o json 2>/dev/null`
11. If one leg unfilled, cancel it to avoid directional exposure

Related Skills

okx-cex-trade

23
from jiayaoqijia/cryptoskill

This skill should be used when the user asks to 'buy BTC', 'sell ETH', 'place a limit order', 'place a market order', 'cancel my order', 'amend my order', 'long BTC perp', 'short ETH swap', 'open a position', 'close a position', 'set take profit', 'set stop loss', 'add a trailing stop', 'set leverage', 'check my orders', 'order status', 'fill history', 'trade history', 'buy a call', 'sell a put', 'buy call option', 'sell put option', 'option chain', 'implied volatility', 'IV', 'option Greeks', 'delta', 'gamma', 'theta', 'vega', 'delta hedge', 'option order', 'option position', 'option fills', or any request to place/cancel/amend spot, perpetual swap, delivery futures, or options orders on OKX CEX. Covers spot trading, swap/perpetual contracts, delivery futures, options (calls/puts, Greeks, IV), and conditional (TP/SL/trailing) algo orders. Requires API credentials. Do NOT use for market data (use okx-cex-market), account balance/positions (use okx-cex-portfolio), or grid/DCA bots (use okx-cex-bot).

kucoin-trader

23
from jiayaoqijia/cryptoskill

Professional KuCoin (KC) trading system - multi-account support, spot/margin/futures trading, asset transfers. Use to check balances, transfer assets, open/close positions, and manage your KuCoin portfolio.

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.

recipe-multi-pair-breakout-watch

23
from jiayaoqijia/cryptoskill

Monitor multiple pairs for price breakouts from defined ranges.