InputPOST /api/v1/x402/amm-out-given-in
{
"reserve_in": 1000,
"reserve_out": 1000,
"amount_in": 10,
"fee_bps": 30
}
Commercial operations analytics · commercial-operations
Constant-product AMM output amount for a given input size. Call when simulating x*y=k swaps offline from reserves you already know. Returns amount out and new reserves as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/amm-out-given-in -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"reserve_in":1000,"reserve_out":1000,"amount_in":10,"fee_bps":30}'
{
"reserve_in": 1000,
"reserve_out": 1000,
"amount_in": 10,
"fee_bps": 30
}
{
"schema": "delx/util-amm-out-given-in/v1",
"amount_in": 10,
"amount_out": 9.871580343970614,
"fee_bps": 30
}
Machine-readable evidence