/orbie-skills:funding-basis-carryfrom orbie-skills
Plan, run and unwind a delta-neutral funding carry (cash-and-carry): short a perp that pays funding and hold the same amount long in spot (or a cheaper perp), entry and exit rules on multi-day realised funding averages, all four fees, borrow costs, liquidation distance on the short leg, venue risk and how to unwind. Use when the user wants to "earn funding", run a basis or cash-and-carry trade, go delta-neutral, compare a carry with Ethena (sUSDe) or Pendle fixed yield, or asks whether a funding rate is worth farming.
Ships in orbie-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A carry earns the funding that longs pay shorts while price moves cancel out between the legs. It is not risk-free: funding flips, four fees and the basis eat thin carries, and the short leg can be liquidated in a rally while the gain sits on the spot leg somewhere else. Every number below is labelled: (sourced) with its source, (default) Orbie's judgment, which the owner can change.
funding_history for the coin, 14–30 days, all venues. Decide on realised multi-day averages (7d and 14d), never on one reading or on mkt_funding's current rate. For GMX use shortEarnsAprPct (the short side's own rate net of borrowing; GMX longs and shorts get different rates).positiveSharePct7d (how often shorts were paid), negativeStreakHours (paying now?), rolling7dAprPct.worst (how bad a week got this month), and predicted.vsRealised7dAprPct (the next interval vs the week; a big negative gap = funding is fading).arb_scan_funding ranks today's candidates with default-tier taker fees, breakeven hours and net APR over a hold; cex_funding / aster_markets / gmx_markets / hl_markets give each venue's current rate and open interest.arb_scan_funding shows per venue (CCXT default tier). Post-only limits (tif: Alo) cut this where the book allows.shortEarnsAprPct). If the spot leg is bought with borrowed stables (Aave, a margin loan, Hyperliquid portfolio margin), subtract that rate. Net carry = funding − borrow − fees amortised over the hold.Enter only when all hold:
complete.positiveSharePct7d ≥ 80%, negativeStreakHours = 0, and rolling7dAprPct.worst > 0 over the last 30 days. A worst week below zero means the carry flips in this regime; size down or skip.arb_scan_spreads / a dex_compare quote shows the spot leg fills within the 15 bps budget.Prefer one carry card: carry_plan (both legs' fees from their own prepared orders, 30-day realised funding, basis, the short's liquidation distance, the exit plan), then carry_prepare_open: one review card that opens the long, shorts exactly what filled, and arms a guard that closes both legs (short first) near liquidation, after a day of wrong-way funding, or when either leg is gone. carry_list, carry_prepare_close to unwind. Legs it takes: Hyperliquid perps or spot, Aster perps, connected exchanges. The steps below are the manual way (other venues, TWAP sizing).
size_position treating the short's liquidation distance as the stop, and keep the whole carry within the agent's limits and the concentration cap. Never split a trade to fit under a limit.hl_prepare_order (sell, leverage, margin: isolated), cex_prepare_perp_order, aster_prepare_order, gmx_prepare_open.hl_prepare_spot_order (Hyperliquid spot is often wrapped: UBTC, UETH, USOL), cex_prepare_order, dex_prepare_swap, or a perp long on a cheaper-funding venue (perp-perp: two margins, two liquidation prices).hl_prepare_twap for the perp) with the other leg following each part.trigger_create position_health on the short's venue (warn 15%, critical 8% from liquidation (default)), and funding_below on Hyperliquid at the breakeven APR. Re-run funding_history daily, not hourly.
Every step is a *_prepare_* → review card → execute; the owner approves, or the agent acts within its limits and loss protection.Exit when any holds:
negativeStreakHours ≥ 24) (default);hl_prepare_class_transfer, deposit) or cut both legs by the same amount; never close only the short (that leaves a naked long). Unwind both legs together, in parts on thin books, reduce-only on the perp (hl_prepare_close, cex_prepare_perp_close, aster_prepare_close, gmx_prepare_close), then sell the spot.ethena_info) is this trade packaged: it adds custodian and exchange risk, and its reserve fund covers negative funding only up to its size (sourced: Ethena docs, risks). Pendle PT-sUSDe (pendle_markets) locks a fixed rate but adds maturity and depeg risk. Compare their net yield with the carry's net, on the same denominator.ChainGPT's own trading research pre-registered and ran carry tests on Hyperliquid in mid-2026:
paper_order both legs) for a new coin or venue, and report realised net after fees, not the funding rate.Coin and venues; realised 7/14/30-day short-leg APR with sources and times; predicted vs realised; fees, basis budget and borrow; breakeven days; net APR on notional and on capital; short leverage, margin mode and liquidation distance; exit triggers set; venue risks; what you could not verify (e.g. a venue unavailable or a window not complete).
Sources: Hyperliquid funding https://hyperliquid.gitbook.io/hyperliquid-docs/trading/funding ; margining https://hyperliquid.gitbook.io/hyperliquid-docs/trading/margining ; liquidations https://hyperliquid.gitbook.io/hyperliquid-docs/trading/liquidations ; Ethena risks https://docs.ethena.fi/solution-overview/risks.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (chaingpt-org/orbie-skills) — no native marketplace selected
npx claudepluginhub p/chaingpt-org-orbie-skills25 skills in this plugin
/airdrop-farmingDecide whether a points program, testnet or "farm the X airdrop" plan is worth it, and run it with one honest wallet: cost/benefit against an uncertain, dilutable reward, protocol risk, the program's sybil rules, wallet hygiene and safe claims. Never splits funds across wallets to look like many users. Use when the user or an agent mentions points, airdrops, farming, testnets, eligibility, or claiming a drop./backtest-protocolProtocol for testing a trading strategy honestly before real money: no lookahead, fees and slippage, walk-forward, then paper, then small live. Use when the user asks to backtest, optimize or evaluate a strategy, signal or bot, or to turn a strategy into an agent that trades./bridge-riskJudge a cross-chain move before it is sent: prefer canonical and issuer routes, read the bridge LI.FI picked (L2BEAT type and trust model, DefiLlama age, audits and hacks), the destination chain's L2BEAT stage, split large amounts, and track arrival without resending. Use for any bridge (prepare_swap with to_chain, CCTP into Hyperliquid) above a small amount, when the user asks which bridge is safe, or when a bridge review card shows a bridge finding./contract-safety-reviewSafety review for writing, deploying or calling smart contracts: OpenZeppelin building blocks, Foundry tests, Slither, weird ERC-20 behaviors and deployment steps. Use when writing or auditing Solidity (contract_compile, contract_prepare_deploy), before calling an unfamiliar contract (contract_prepare_call), or when a contract will hold funds, accept arbitrary tokens or use flash loans./copy-trading-safetyVet a trader before copying or following them, pick copy targets from the Hyperliquid leaderboard, read smart-money vs crowd positioning, set safe limits for copy_follow (Solana) and hlcopy_follow (Hyperliquid), and decide when to go from paper to real. Use when the user wants to copy, mirror or follow a trader, "smart money", a whale or an influencer wallet, asks "who should I copy?", "is 0x… any good?", "where is smart money positioned?", or wants to switch a copy from paper to real money./defi-yield-ladderRank yields by what can break them, not by APY: place each candidate on a tier ladder (T0 staking to T4 farms) with DefiLlama's outlier, history and volatility fields and protocol_info checks, split a yield budget across tiers with caps, and name the risk behind any APY far above its peers. Use for "best yield", parking stables or ETH, comparing vaults, lending markets, Pendle or farms, or before moving a yield position.