Install
openclaw skills install @ssidharhubble/perp-basis-scannerScans 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.
openclaw skills install @ssidharhubble/perp-basis-scannerCompares 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.
watch mode).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.
/api/v3/ticker/price + futures /fapi/v1/premiumIndex
(mark price + last funding rate)./market/tickers for both spot and linear categories./market/ticker for spot and -SWAP instruments, plus
/public/funding-rate./public/get_index_price (spot index) + /public/ticker
for the -PERPETUAL instrument (BTC/ETH/SOL only — Deribit doesn't list
perpetuals for every coin).basis_pct * 3 * 365), not a real funding-payment forecast — actual
funding rates float and can flip sign.--exchanges.error field instead of
failing the whole scan.