Detect whether an arbitrage opportunity exists in a set of token exchange rates (multi-poo
Detect whether an arbitrage opportunity exists in a set of token exchange rates (multi-pool negative-cycle scan). Cheap boolean + magnitude signal for trading agents. POST a swap-rate graph, get back whether a profitable cycle exists and how large — without the path.
1000 (raw units)
price
4
calls / 30d
4
unique payers
2026-09-14
updated
Provider
x402-solvers.onrender.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xA238AF2e66D9d7301F2D02932931851DdF900Dcd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 30
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"edges": [
{
"dex": "aerodrome",
"fee": 0.0005,
"from": "USDC",
"rate": 0.00031,
"to": "WETH"
},
{
"dex": "uniswap",
"fee": 0.0005,
"from": "WETH",
"rate": 3300,
"to": "USDC"
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"edgesEvaluated": 3,
"hasArbitrage": true,
"hops": 3,
"nodesEvaluated": 3,
"profitBucket": ">2%",
"tier": "probe"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"edges": {
"description": "Directed exchange-rate edges describing a token swap graph. Supply the rates you observed; the server makes no RPC calls of its own.",
"items": {
"properties": {
"dex": {
"description": "Venue label; echoed back untouched.",
"type": "string"
},
"fee": {
"description": "Fractional swap fee, e.g. 0.003 for 0.30%. Defaults to 0.",
"exclusiveMaximum": 1,
"minimum": 0,
"type": "number"
},
"from": {
"description": "Source token symbol.",
"type": "string"
},
"pool": {
"description": "Pool address; echoed back untouched.",
"type": "string"
},
"rate": {
"description": "Units of `to` per 1 unit of `from`, BEFORE fees.",
"exclusiveMinimum": 0,
"type": "number"
},
"to": {
"description": "Destination token symbol.",
"type": "string"
}
},
"required": [
"from",
"to",
"rate"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"edges"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"description": "Fast arbitrage-existence signal for a token swap graph: whether a profitable negative cycle exists and roughly how big, WITHOUT revealing the cycle path (that is the report tier).",
"properties": {
"edgesEvaluated": {
"type": "number"
},
"hasArbitrage": {
"description": "True if a profitable round-trip cycle exists.",
"type": "boolean"
},
"hops": {
"description": "Swaps in the detected cycle (0 if none).",
"type": "number"
},
"nodesEvaluated": {
"type": "number"
},
"profitBucket": {
"description": "Coarse magnitude of the best cycle gross profit.",
"enum": [
"none",
"<=0.1%",
"0.1-0.5%",
"0.5-2%",
">2%"
],
"type": "string"
},
"tier": {
"const": "probe"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402-solvers.onrender.com/v1/cycles/probe" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402-solvers.onrender.com/v1/cycles/probe");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402-solvers.onrender.com/v1/cycles/probe")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/3243.json, and this resource appears in /discovery/resources and /discovery/search.