Skip to content
Fourohtwo

CEX-DEX arbitrage spread calculator

alphapipeline-eu.onrender.com/v1/arb/spread-matrix

CEX-DEX arbitrage spread calculator - compares a global reference price (Coinbase spot, CoinGecko fallback) against a DEX pool price and returns gross/net spread and an is_profitable flag after an assumed gas cost. Paid in USDC on Base.

BaseAnswering
GEThttps://alphapipeline-eu.onrender.com/v1/arb/spread-matrix

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://alphapipeline-eu.onrender.com/v1/arb/spread-matrix?network=base&symbol=SUI&token_address=0x0000000000000000000000000000000000000000&trade_size_usd=1000");
console.log(await res.json());

Example input

{
  "network": "base",
  "symbol": "SUI",
  "token_address": "0x0000000000000000000000000000000000000000",
  "trade_size_usd": 1000
}
CEX-DEX arbitrage spread calculator by AlphaPipeline Arb Spread · x402 API | Fourohtwo