{"uid":"cap_IRbzzJbTyM3dlgpnfRzJz","slug":"coinopselect-intent-surplus-calculator-4f8010a6","name":"CoinOpSelect Intent Surplus Calculator","description":"Paid on-chain token, wallet, contract and research data over x402 on Base.","url":"https://coinop.publicvm.com/api/v1/intent/surplus?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string"},"method":{"type":"string"},"queryParams":{"type":"object","required":["limitPrice","fillPrice"],"properties":{"fillPrice":{"type":"string","description":"Fill price"},"limitPrice":{"type":"string","description":"Limit price"}}}}},"output":{"type":"object","properties":{"query":{"type":"string"},"result":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"query":"intent-surplus","result":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GNjql-OZsBQQqKp92NK7Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the surplus (profit or savings) for a given intent order by comparing a limit price against a fill price on-chain.","exampleAgentPrompt":"What's the surplus for my limit-order intent on Base where my limit price was 1.05 and the fill price was 1.03?","exampleUseCases":[{"title":"DeFi swap surplus check","prompt":"I placed a token swap intent on Base with a limit price of 2.50 and it got filled at 2.47 — what's the surplus I captured?"},{"title":"Order efficiency evaluation","prompt":"For my on-chain intent order with a limit price of 100.00 and a fill price of 98.50, calculate the surplus so I can see how efficiently it executed."},{"title":"Automated trading profit tracking","prompt":"My trading bot ran a limit-order intent with limitPrice 0.9800 and fillPrice 0.9650 — can you pull the intent surplus data for that trade?"}],"resultDescription":"Returns a JSON object with a 'query' field set to 'intent-surplus' and a 'result' object containing the computed surplus data for the provided limit price and fill price parameters.","failureModes":["Missing required queryParams (limitPrice or fillPrice) returns an error or empty result","Invalid price format (non-numeric string) may cause computation failure","Payment not received via x402 protocol results in 402 Payment Required response","Network or on-chain data unavailability returns an empty result object","Type or method parameters not matching supported intent types returns an error"],"whenToPreferThis":"Use this endpoint when you need to calculate or verify the surplus generated by an intent-based order on the Base blockchain by comparing the user's limit price against the actual fill price. Prefer this over generic DeFi analytics tools when you specifically need per-intent surplus computation in an x402 micropayment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:53.030Z","isFirstParty":false,"canonicalSlug":"coinopselect-intent-surplus-calculator-4f8010a6"}