$0.01
per call · USD Coin on Base
Cross-DEX price, liquidity and gross arbitrage spread for ONE BSC pair in a single call, across PancakeSwap v2/v3, Biswap and ApeSwap. Returns pricesByVenue[], bestBuy, bestSell, midSpreadBps, crossDex (grossSpreadBps, grossUsd, optimalInput) and liquidity at a stated blockNumber. Requires ?pair=SYM/SYM (first symbol is USD-priceable); optional ?fee= pins one v3 tier. Errors: 400 bad_pair|bad_fee, 404 no_pools, 502 upstream_read_failed. Split views: /price, /liquidity, /route.
Endpoint
GET https://x402.donnyautomation.com/call2
Calls / 30d
2
Unique payers / 30d
Sep 2
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://x402.donnyautomation.com/call", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://x402.donnyautomation.com/call?pair=WBNB%2FUSDC" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"bestBuy": {
"price": 546.2,
"venue": "pancakeV3:500"
},
"bestSell": {
"price": 546.9,
"venue": "pancake"
},
"blockNumber": 107399076,
"chainId": 56,
"crossDex": {
"buyVenue": "pancakeV3:500",
"grossSpreadBps": 14.05,
"grossUsd": 3.2,
"optimalInput": {
"amount": 2.1,
"token": "WBNB",
"usd": 1148
},
"sellVenue": "pancake",
"surface": "v2v3",
"tickBoundaryBreach": false
},
"liquidity": {
"totalTvlUsd": 9800000,
"venues": 7
},
"midSpreadBps": 27.4,
"nativeUsd": 546.6,
"network": "bsc",
"pair": "WBNB/USDC",
"pricesByVenue": [
{
"feeBps": 25,
"price": 546.6,
"surface": "v2",
"tvlUsd": 1348000,
"venue": "pancake"
},
{
"feeBps": 5,
"price": 546.2,
"surface": "v3",
"tvlUsd": 2100000,
"venue": "pancakeV3:500"
}
],
"source": "rpc",
"ts": "2026-07-01T00:00:00.000Z"
}Payment details
0x2740651e046c59ab2a6510401140643292d3a96fUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from DEX Data & Agent Utilities & similar services
DEX Data & Agent Utilities · Base Liquidity
x402.donnyautomation.com
Per-venue USD liquidity and TVL for a pair on Base across BaseSwap, SushiSwap and Uniswap v3. Returns totalTvlUsd, venueCount, deepestVenue and venues[] with each venue share and reserves. Requires ?pair=SYM/SYM (e.g. WETH/USDC). Errors: 400 bad_pair (malformed, or a ticker unknown on this chain), 404 no_pools, 502 upstream_read_failed. Raw pool numbers are /reserves; a one-word verdict is /risk; price is /price. Chain-pinned; bare /liquidity = BSC.
DEX Data & Agent Utilities · Treasury
x402.donnyautomation.com
US Treasury par yield curve, every constant maturity from 1 month to 30 years for a published business day. Returns curve[] with tenor, months and percent, spreads (2s10s, 3m10y, 5s30s) and an explicit inversion flag - the real question is whether the curve is inverted, not what fourteen numbers are. A tenor Treasury did not publish is null, never zero. Pass ?latest=1 OR ?date=YYYY-MM-DD, not both. Errors: 400 conflicting_params|bad_latest|bad_date, 404 no_curve with the available range.
DEX Data & Agent Utilities · V4hooks
x402.donnyautomation.com
Uniswap v4 hook capability scan on Base mainnet. Decodes all 14 permission bits from the hook address per v4-core Hooks.sol, flags swap custody, fee-taking and EIP-1967 upgradeability, and verifies source by Basescan/Sourcify/Blockscout consensus. Returns custodyClass PASSIVE|FLOW_CONTROL|FEE_TAKING|SWAP_CUSTODY|OPAQUE, flags[], riskFlags[] and verificationState. Requires ?address=0x + 40 hex. Errors: 400 invalid_address, 502 analysis_failed. Capability analysis - it never outputs SAFE.