skills/recipe-basis-trade-entry/SKILL.md
Enter a spot-futures basis trade when the premium exceeds a target threshold.
npx skillsauth add krakenfx/kraken-cli recipe-basis-trade-entryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
SPOT=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].c[0]')FUTURES=$(kraken futures ticker PF_XBTUSD -o json 2>/dev/null | jq -r '.ticker.last')BASIS=$(echo "scale=4; ($FUTURES - $SPOT) / $SPOT * 100" | bc)kraken balance -o json 2>/dev/nullkraken futures accounts -o json 2>/dev/nullkraken order buy BTCUSD 0.01 --type limit --price $SPOT -o json 2>/dev/nullkraken futures order sell PF_XBTUSD 1 --type limit --price $FUTURES -o json 2>/dev/nullkraken open-orders -o json 2>/dev/null + kraken futures open-orders -o json 2>/dev/nulltools
Connect MCP clients to kraken-cli for native tool calling without subprocess wrappers.
testing
Safely withdraw funds to a pre-approved cold storage address.
testing
Run a weekly portfolio rebalance to maintain target asset allocations.
testing
Ride a trend with a trailing stop that locks in profits on reversal.