AI Strategy Playbook
VWAP Intraday Pullback AI Trading Agent (MCP Script)
Volume-Weighted Average Price (VWAP) is the benchmark institutional desks use to judge fair intraday execution. Because Eterna calculates VWAP natively and charges only 0.014% maker, intraday agents can bid VWAP pullbacks without getting eaten alive by fees.
Strategy Summary
Call `eterna.getVwap()` and `eterna.getOrderbook()` together in `execute_code` to measure price distance from session VWAP and confirm bid/ask liquidity support before placing low-fee maker limit orders (0.014%) at the VWAP band.
SDK MethodsgetVwap + getOrderbookFair value + live liquidity check
Maker Fee0.014%Critical for intraday trade frequency
Best MarketsBTC, ETH, SOL, NVDA, TSLAHigh intraday volume
Latency<200msTight limit-order execution
https://mcp.eterna.exchange/mcp1. Runnable VWAP Deviation & Spread Check
const symbols = ["BTCUSDT", "ETHUSDT", "SOLUSDT", "NVDAUSDT", "TSLAUSDT"];
const rows = [];
for (const symbol of symbols) {
const [t, vwapRes, book] = await Promise.all([
eterna.getTickers({ symbol }),
eterna.getVwap({ symbol, interval: "15" }),
eterna.getOrderbook({ symbol, limit: 5 }),
]);
const price = Number(t[0].lastPrice);
const vwap = Number(vwapRes.value ?? vwapRes.latest);
const devPct = ((price - vwap) / vwap) * 100;
const bestBid = Number(book.bids?.[0]?.[0] ?? price);
const bestAsk = Number(book.asks?.[0]?.[0] ?? price);
const spreadBps = ((bestAsk - bestBid) / price) * 10000;
rows.push({
symbol,
price,
vwap: Number(vwap.toFixed(4)),
devFromVwapPct: Number(devPct.toFixed(3)),
spreadBps: Number(spreadBps.toFixed(2)),
});
}
return rows;Returns: Live VWAP deviation percentage and bid-ask spread in basis points across crypto and stock perps.
FAQ
Frequently asked questions
Why check bid-ask spread in basis points before intraday entries?
If a thin altcoin has a 15 bps spread, a 25 bps intraday scalp is mathematically broken. Checking `getOrderbook()` ensures your agent only trades pairs where spread plus 0.014% maker fee leaves healthy edge.
Primary Sources
References & verification links
- Tokenized Stocks AI Trading GuideUsing VWAP and momentum strategies on 24/7 equity perpetuals.
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.