Official Reference

Eterna MCP SDK Reference: All 30+ eterna.* Methods

Authoritative inventory of every method registered in Eterna's MCP gateway SDK. Coding agents and developers can rely on this page or call search_sdk(detail_level: 'full') at runtime to avoid hallucinating non-existent methods.

Updated: By Eterna Engineering (MCP Infrastructure & Execution Team)Read as Markdown
Direct answer: What methods exist in the Eterna MCP SDK?

Eterna MCP exposes 3 top-level tools (search_sdk, search_examples, execute_code) and 30 typed eterna.* SDK methods inside the execute_code Deno sandbox across 5 categories: Market Data (3), Technical Analysis (6), Trading for USDT perps and spot (7), Account (5), and Funding (9). There is no register_agent tool.

MCP Tools3 toolssearch_sdk, search_examples, execute_code
SDK Methods30 methods5 categories in global eterna.*
Default Marketlinear perpsPass market: 'spot' for USDT spot
RuntimeDeno TypeScriptZero imports required inside execute_code
https://mcp.eterna.exchange/mcp

Top-level MCP tools vs eterna.* sandbox methods

Never call SDK methods directly as top-level MCP tools. Always discover with search_sdk and run TypeScript through execute_code.

Top-level MCP tools exposed by https://mcp.eterna.exchange/mcp
MCP Tool NamePurposeWhen to Call
search_sdkInspect exact SDK method docs at list, summary, full, params, or keywords detail levelsBefore writing a new execute_code script to confirm exact parameter names
search_examplesSemantic search over curated working TypeScript strategy snippetsWhen implementing multi-step workflows (TP/SL, spot exit, funding)
execute_codeRun TypeScript inside an isolated Deno worker with pre-authenticated global eterna.*For all market reads, TA indicators, orders, account checks, and funding

1. Market Data methods (3 methods)

Market Data SDK methods (support linear perps default and optional market: 'spot')
MethodMarket SupportDescription
eterna.getTickerslinear (default) | spotReal-time last price, 24h change, volume, bid/ask, and funding rate for one or all symbols.
eterna.getOrderbooklinear (default) | spotLive order-book bids and asks depth for spread and slippage checks.
eterna.getInstrumentslinear (default) | spotContract specs including tickSize, qtyStep, minOrderQty, maxLeverage, and trading status.

2. Technical Analysis methods (6 methods)

Built-in Technical Analysis SDK methods
MethodIndicatorCommon Use Case
eterna.getRsiRelative Strength Index (RSI)Overbought / oversold momentum filtering across timeframes.
eterna.getMacdMACD (line, signal, histogram)Momentum shifts and trend crossover confirmation.
eterna.getEmaExponential Moving AverageFast/slow trend alignment (e.g. EMA 20 vs EMA 50 or EMA 200).
eterna.getSmaSimple Moving AverageBaseline mean-reversion and higher-timeframe trend filter.
eterna.getBollingerBandsBollinger Bands (upper/middle/lower)Volatility squeeze detection and breakout / reversion targets.
eterna.getVwapVolume-Weighted Average PriceIntraday institutional fair-value anchor for entries and exits.

3. Trading methods (7 methods: USDT Perps & Spot)

Trading execution SDK methods
MethodMarket ScopeDescription
eterna.placeOrderlinear (default) | spotSubmit Market or Limit Buy/Sell orders with optional stopLoss, takeProfit, reduceOnly, and market: 'spot'.
eterna.sellSpotBalancespot onlyExit an existing spot coin holding at market price without manual dust rounding.
eterna.closePositionlinear perps onlyClose an open perpetual position (full or partial reduce-only exit).
eterna.cancelOrderlinear (default) | spotCancel a specific resting limit or conditional order by orderId.
eterna.cancelAllOrderslinear (default) | spotCancel all open resting orders for a symbol or across the market.
eterna.setLeveragelinear perps onlyConfigure position leverage (up to symbol max, e.g. 150x on BTC/ETH).
eterna.setTradingStoplinear perps onlyAttach or update stopLoss, takeProfit, or trailing stop on an open perp position.

4. Account methods (5 methods)

Account & portfolio state SDK methods
MethodDescription
eterna.getBalanceTrading wallet equity, available margin, and USDT balance.
eterna.getAccountInfoAccount mode (unified / margin mode), leverage tier, and configuration metadata.
eterna.getAllCoinsBalanceBalances across all coins in funding and unified trading wallets (essential for spot).
eterna.getPositionsOpen perpetual positions with entry price, mark price, unrealized PnL, leverage, and TP/SL.
eterna.getOrdersOpen and recent orders (pass market: 'spot' for spot orders).

5. Funding & Wallet methods (9 methods)

Deposit, transfer, swap, and withdrawal SDK methods
MethodDescription
eterna.getAllowedDepositCoinsList coins and blockchain networks supported for deposit.
eterna.getDepositAddressRetrieve deposit address and tag/memo for a coin and chain.
eterna.getDepositRecordsInspect recent deposit history and confirmation status.
eterna.transferToTradingMove deposited funds from funding wallet into the unified trading wallet.
eterna.swapToUsdtConvert a deposited non-USDT asset into USDT for trading collateral.
eterna.getCoinInfoNetwork fees, minimum withdrawal amounts, and chain metadata per coin.
eterna.getWithdrawableAmountCheck how much of a coin is currently free and eligible to withdraw.
eterna.submitWithdrawalRequest a withdrawal (requires explicit human approval step).
eterna.getWithdrawalStatusTrack the approval and on-chain broadcast status of a withdrawal request.

Example: Inspecting spot vs perp markets in one execute_code call

execute_code / market-snapshot.ts
const [btcPerp, btcSpot, ethRsi, balance, positions] = await Promise.all([
  eterna.getTickers({ symbol: "BTCUSDT" }),
  eterna.getTickers({ symbol: "BTCUSDT", market: "spot" }),
  eterna.getRsi({ symbol: "ETHUSDT", interval: "4h", period: 14 }),
  eterna.getBalance(),
  eterna.getPositions(),
]);

return {
  btcPerpLast: btcPerp[0]?.lastPrice,
  btcSpotLast: btcSpot[0]?.lastPrice,
  eth4hRsi: ethRsi.value,
  equity: balance.totalEquity,
  openPositions: positions.length,
};
Returns: Returns a concise 5-field snapshot comparing BTC perpetual vs spot pricing, ETH 4h RSI, account equity, and active position count in one MCP round-trip.
FAQ

Frequently asked questions

How many methods are in the Eterna MCP SDK?
There are 30 typed SDK methods organized across 5 categories: Market Data (3), Technical Analysis (6), Trading (7), Account (5), and Funding (9), all executed inside execute_code.
Is there a register_agent MCP tool?
No. register_agent does not exist. Sub-accounts are provisioned automatically on first OAuth 2.1 sign-in when connecting to https://mcp.eterna.exchange/mcp.
How do I specify USDT spot instead of perpetual futures in the SDK?
Linear USDT perpetual futures are the default. To target USDT spot pairs (380+ pairs), pass market: 'spot' to placeOrder, getTickers, getOrderbook, getInstruments, getOrders, cancelOrder, or cancelAllOrders. To exit a spot holding cleanly, call eterna.sellSpotBalance(symbol).
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