Market-Neutral Playbook

Perpetual Funding Rate & Spot-Perp Basis AI Agent (MCP Script)

Funding rates reveal real positioning pressure faster than social media sentiment. Because Eterna lists both 800+ USDT perps and 380+ USDT spot pairs under one roof, an AI agent can measure live basis and funding carry in milliseconds.

Updated: By Eterna Quant & AI Team (Systematic Execution & MCP Playbooks)Read as Markdown
Strategy Summary

Query `eterna.getTickers()` across linear perpetuals and matching spot markets in a single `execute_code` call to rank pairs by annualized funding rate and spot-perp basis spread. Use extreme positive funding to spot overcrowded longs or hedge spot inventory with short perpetuals.

Unified VenuesPerp + Spot in 1 SDKCompare linear vs spot tickers directly
Funding Mathrate * 3 * 365Standard 8-hour funding annualization
Maker Fee0.014%Low round-trip cost for carry entry
Use CasesCarry + ContrarianSpot crowded longs/shorts early
https://mcp.eterna.exchange/mcp

1. Runnable Funding Rate & Basis Leaderboard

funding-basis-scanner.ts
const symbols = ["BTCUSDT", "ETHUSDT", "SOLUSDT", "XRPUSDT", "DOGEUSDT", "SUIUSDT", "1000PEPEUSDT"];
const rows = [];

for (const symbol of symbols) {
  const perp = (await eterna.getTickers({ symbol, market: "linear" }))[0];
  const fundingRate = Number(perp.fundingRate ?? 0);
  const aprPct = fundingRate * 3 * 365 * 100;

  rows.push({
    symbol,
    markPrice: Number(perp.markPrice ?? perp.lastPrice),
    fundingRate8hPct: Number((fundingRate * 100).toFixed(4)),
    annualizedAprPct: Number(aprPct.toFixed(1)),
  });
}

return rows.sort((a, b) => Math.abs(b.annualizedAprPct) - Math.abs(a.annualizedAprPct));
Returns: Perpetuals ranked by absolute annualized funding rate.
FAQ

Frequently asked questions

Can an AI agent hedge my spot holdings with a short perpetual on Eterna?
Yes. Because Eterna supports both spot and USDT perpetuals in the same SDK, an agent can read your spot balance (`getAllCoinsBalance`) and open a matching short linear perpetual (`placeOrder`) to neutralize directional beta.
Primary Sources

References & verification links

Start Trading via MCP

Connect your AI agent in 30 seconds

One remote MCP URL. 800+ USDT perpetuals, 380+ spot pairs, 0.014% maker / 0.035% taker, no KYC.

View on GitHub