Venue Routing
api.0mod.com/api/v1/crypto/venue-routing
Venue Routing — live CEX vs DEX execution router for AI agents. Compares Coinbase L2 book depth against Base DEX pool state for { pair, side, size_usd } and returns expected_fill_price, slippage_bps, all_in_cost_bps, best_venue, net_savings_usd and split_allocation; no API key.
POST
https://api.0mod.com/api/v1/crypto/venue-routingUptime100% of 4 checks 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://api.0mod.com/api/v1/crypto/venue-routing", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"pair":"AERO-USD","side":"buy","size_usd":1000}),
});
console.log(await res.json());Example input
{
"pair": "AERO-USD",
"side": "buy",
"size_usd": 1000
}