{"uid":"cap_gW1NdGaFT9y7O6mYQFsll","slug":"curvecall-sell-quote-1a6d3ae3","name":"CurveCall Sell Quote","description":"Pay-per-call market math and token intel for AI agents, via x402.","url":"https://curvecall.onrender.com/v1/quote/sell?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"fee_bps":{"type":"number","default":100,"required":false,"description":"Curve fee in basis points"},"amount_in":{"type":"number","required":true,"description":"Amount to trade"},"quote_reserves":{"type":"number","required":true,"description":"Virtual quote-asset reserves (x)"},"token_reserves":{"type":"number","required":true,"description":"Virtual token reserves (y)"}}}},"output":{"type":"object","properties":{"example":{"fee":0.01,"side":"buy","amount_in":1,"amount_out":34521.9,"price_after":0.0000299,"average_price":0.000029,"new_quote_reserves":31,"new_token_reserves":1038000}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ex8jwrbvuq_s0OrOV_lZ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the output amount, average price, and post-trade reserves for a sell-side trade on an AMM constant-product bonding curve, given virtual reserves and input amount.","exampleAgentPrompt":"I want to sell 500 tokens on a bonding curve where the virtual quote reserves are 30 and token reserves are 1,040,000 — can you calculate how much quote asset I'd receive, the average price, and where reserves land after the trade? Use a 100 bps fee.","exampleUseCases":[{"title":"Pre-trade slippage check for token sale","prompt":"Before I sell 10,000 tokens into a pool with 50 quote reserves and 2,000,000 token reserves, can you tell me my expected output, average fill price, and how much slippage I'm taking? Assume a 100 bps curve fee."},{"title":"Bonding curve price impact analysis","prompt":"I'm analyzing a meme token launch — if someone dumps 500,000 tokens into a pool that has 80 quote reserves and 5,000,000 token reserves, what does the price drop to after the trade and what do they walk away with? Use the default 100 bps fee."},{"title":"Agent auto-routing best-execution check","prompt":"My agent is about to route a sell of 250 tokens through a bonding curve with 25 quote reserves and 900,000 token reserves — compute the exact amount out and post-trade state so I can decide if this is worth executing at a 150 bps fee."}],"resultDescription":"Returns a JSON object containing: fee charged, side ('sell'), amount_in, amount_out (quote asset received), average_price paid, price_after (new spot price), new_quote_reserves, and new_token_reserves — fully describing the trade outcome and resulting pool state.","failureModes":["Missing required fields (amount_in, quote_reserves, token_reserves) returns a validation error","Zero or negative reserve values may cause division-by-zero or nonsensical pricing","amount_in larger than available token reserves may return invalid or extreme slippage values","Service unavailable due to cold-start on Render free tier causing slow initial response","Payment failure via x402 protocol blocks the call before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need to mathematically price a sell-side swap on a constant-product AMM or bonding curve without executing an on-chain transaction. It is ideal for pre-trade simulation, slippage estimation, agent-driven best-execution routing, or building trading UIs that need real-time quote math. Prefer it over on-chain calls when you want instant, cheap ($0.001 USDC), deterministic computation without gas costs or latency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:39:41.617Z","isFirstParty":false,"canonicalSlug":"curvecall-sell-quote-1a6d3ae3"}