# VWAP Intraday Pullback AI Trading Agent (MCP Script)

> 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.

- Canonical URL: https://ai.eterna.exchange/strategies/vwap-intraday-agent
- Last updated: November 23, 2026
- Author: Eterna Quant & AI Team (Systematic Execution & MCP Playbooks)
- MCP endpoint: https://mcp.eterna.exchange/mcp

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.

## Key Facts

| Metric | Value | Notes |
|--------|-------|-------|
| SDK Methods | getVwap + getOrderbook | Fair value + live liquidity check |
| Maker Fee | 0.014% | Critical for intraday trade frequency |
| Best Markets | BTC, ETH, SOL, NVDA, TSLA | High intraday volume |
| Latency | <200ms | Tight limit-order execution |

## 1. Runnable VWAP Deviation & Spread Check

### vwap-intraday-check.ts

```typescript
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.

## 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.

## References & Primary Sources

- [Tokenized Stocks AI Trading Guide](https://ai.eterna.exchange/strategies/tokenized-stocks-ai-trading): Using VWAP and momentum strategies on 24/7 equity perpetuals.

## Related Guides

- [24/7 AI Trading for Tokenized Stocks (NVDA, TSLA, AAPL, COIN, MSTR)](https://ai.eterna.exchange/strategies/tokenized-stocks-ai-trading)
- [Bollinger Band Squeeze & Breakout AI Agent (MCP Script)](https://ai.eterna.exchange/strategies/bollinger-band-breakout-agent)
- [Eterna AI Pricing & Trading Fees for AI Agents](https://ai.eterna.exchange/pricing)
- [AI Trading for NVIDIA Stock Perp (NVDAUSDT) via Eterna MCP](https://ai.eterna.exchange/markets/nvda)
