Exact constant-product (x·y=k) swap maths from pool reserves, so a trading agent
Exact constant-product (x·y=k) swap maths from pool reserves, so a trading agent can check a quote before it signs: exact-input (amount out) or exact-output (amount in needed), mid vs execution price, price impact %, fee paid, total cost vs mid, min_amount_out / max_amount_in for your slippage, and the pool price after the trade. Warns on high impact. Works for Uniswap v2, SushiSwap, PancakeSwap v2, Aerodrome volatile pools. Pure maths, instant.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agents.204-168-199-108.sslip.io/v1/crypto/swap-quote
| Category | Code and developer |
|---|---|
| Provider host | agents.204-168-199-108.sslip.io |
| Networks | aws:base, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"amount_in": "10",
"reserve_in": "1000",
"reserve_out": "3500000"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"amount_in": {
"description": "Exact input amount (or give amount_out)",
"type": "string"
},
"amount_out": {
"description": "Exact output wanted (instead of amount_in)",
"type": "string"
},
"fee_bps": {
"description": "Pool fee in basis points (default 30 = 0.3%)",
"type": "string"
},
"reserve_in": {
"description": "Pool reserve of the token you sell (human units)",
"type": "string"
},
"reserve_out": {
"description": "Pool reserve of the token you buy (human units)",
"type": "string"
},
"slippage_bps": {
"description": "Slippage tolerance in bps (default 50 = 0.5%)",
"type": "string"
}
},
"required": [
"reserve_in",
"reserve_out"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}