记忆

perp-basis-scanner

试用

Scans the spot-vs-perpetual futures basis (contango/backwardation) across Binance, Bybit, OKX, and Deribit for any symbol they list, using free public REST market-data endpoints with no API key required. Useful for crypto trading, basis trade, cash-and-carry arbitrage, funding rate arbitrage, perpetual futures, options and derivatives research, whale-style institutional strategies, and passive income via delta-neutral spot-perp spreads. Reports live spot price, perp mark price, basis percentage, a rough annualized basis estimate, and the current 8-hour funding rate side by side across exchanges so you can spot the widest, most tradeable dislocations. Supports one-shot scans and a repeating watch mode for monitoring basis drift over time. Built for python developers, ai agent operators, and defi/crypto researchers who want a quick cross-exchange basis check before sizing a cash-and-carry or funding-rate-arbitrage position.

它能做什么

Scans the spot-vs-perpetual futures basis (contango/backwardation) across Binance, Bybit, OKX, and Deribit for any symbol they list, using free public REST market-data endpoints with no API key required. Useful for crypto trading, basis trade, cash-and-carry arbitrage, funding rate arbitrage, perpetual futures, options and derivatives research, whale-style institutional strategies, and passive income via delta-neutral spot-perp spreads. Reports live spot price, perp mark price, basis percentage, a rough annualized basis estimate, and the current 8-hour funding rate side by side across exchanges so you can spot the widest, most tradeable dislocations. Supports one-shot scans and a repeating watch mode for monitoring basis drift over time. Built for python developers, ai agent operators, and defi/crypto researchers who want a quick cross-exchange basis check before sizing a cash-and-carry or funding-rate-arbitrage position.

技能文档

Perp Basis Scanner

Compares spot and perpetual futures prices across Binance, Bybit, OKX, and Deribit for a given symbol, reporting the basis (spread between spot and perp) and an approximate annualized rate. This is a research/monitoring tool, not an execution engine — it does not place orders.

When to use this skill

  • The user wants to check whether a spot-vs-perp basis trade (cash-and-carry) looks attractive right now for a given coin.
  • The user asks "what's the basis on BTC/ETH/SOL across exchanges" or wants to compare funding rates and mark-price spreads side by side.
  • The user wants a lightweight, repeatable way to watch basis drift over a session (watch mode).

How to run it

python3 scripts/basis_scanner.py scan BTC ETH SOL
python3 scripts/basis_scanner.py scan BTC --json
python3 scripts/basis_scanner.py scan BTC --exchanges binance,deribit
python3 scripts/basis_scanner.py watch BTC ETH --interval 30

scan runs once and prints a table (or JSON with --json). watch repeats the scan on an interval (seconds) until interrupted with Ctrl+C.

What it covers

  • Binance: spot /api/v3/ticker/price + futures /fapi/v1/premiumIndex (mark price + last funding rate).
  • Bybit: v5 /market/tickers for both spot and linear categories.
  • OKX: /market/ticker for spot and -SWAP instruments, plus /public/funding-rate.
  • Deribit: /public/get_index_price (spot index) + /public/ticker for the -PERPETUAL instrument (BTC/ETH/SOL only — Deribit doesn't list perpetuals for every coin).

Limitations

  • The "annualized basis" figure is a rough extrapolation (basis_pct * 3 * 365), not a real funding-payment forecast — actual funding rates float and can flip sign.
  • No order-book depth is used, so this does not account for slippage on entry/exit.
  • Deribit only supports BTC, ETH, and SOL perpetuals; other symbols will return an error row for that exchange and can be excluded with --exchanges.
  • All endpoints are public and unauthenticated; if an exchange rate-limits or blocks the request, that row will show an error field instead of failing the whole scan.

相关技能

Scans live public spot tickers across Coinbase, Kraken, Bitstamp, Gemini, and OKX (no API key required) to detect cross-exchange crypto arbitrage opportunities, price discrepancies, and crossed markets for BTC, ETH, SOL, and other listed tokens. Use this when the user asks about crypto arbitrage, cross exchange arbitrage, cex arbitrage scanner, price spread between exchanges, buy low sell high across crypto exchanges, spot arbitrage bot, exchange price discrepancy, best bid ask across venues, or wants to check if an arbitrage opportunity currently exists between major spot exchanges. Reports spread in basis points and which venue to buy/sell on, but does not account for withdrawal time, network fees, or trading fees, so results are gross spreads only.

Use when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the spot–perp basis as a positionin...

Perpetual futures signal scanner for Hyperliquid L1 DEX. Tracks funding rates, open interest shifts, large position changes, and liquidation cascades across...

Funding rate analysis across perps with arb opportunity scoring

1 次安装

Scan live stablecoin yields across every major DeFi protocol and chain — Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche, and more — using the free DeFiLlama pools API (no API key required). Built for crypto and DeFi users hunting the best USDC, USDT, DAI, and other stablecoin APY without directional trading risk. Filters by minimum TVL to screen out low-liquidity rug risk, filters by APY range to catch unsustainable reward-emission traps, and can scope results to a single chain. Useful for passive income, yield farming, treasury management, and whale-style capital allocation across DeFi protocols like Aave, Pendle, Curve, and Morpho. Complements trading and options skills by covering the non-directional yield side of crypto.

1 次安装