{"uid":"cap_j7IQim6Xcodmf-Iz2__NV","slug":"delx-commerce-slippage-bps-calculator-f842ab3f","name":"Delx Commerce — Slippage BPS Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/slippage-bps?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mid":{"type":"integer","description":"Input field: mid."},"fill":{"type":"number","description":"Input field: fill."}}},"responseSchema":{"type":"json","example":{"mid":100,"fill":100.3,"schema":"delx/util-slippage-bps/v1","slippage_bps":29.99999999999972}},"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_uWXuck8eesdMcw05tj_di","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":"Calculates slippage in basis points (bps) given a mid price and a fill price for a trade.","exampleAgentPrompt":"What's the slippage in basis points if the mid price was 100 and my fill came in at 100.3?","exampleUseCases":[{"title":"DeFi swap execution quality check","prompt":"I just swapped on-chain and got a fill at 2051.50 against a mid of 2050. How many basis points of slippage did I take?"},{"title":"Algorithmic trading audit","prompt":"Our algo filled a limit order at 98.75 when the mid was 98.50 — can you tell me the slippage in bps so I can log it for the post-trade report?"},{"title":"Market maker spread analysis","prompt":"If my mid price is 500 and the fill price is 501.25, what is the slippage in basis points?"}],"resultDescription":"Returns a JSON object containing the echoed mid price, the echoed fill price, a schema identifier string ('delx/util-slippage-bps/v1'), and the computed slippage_bps as a floating-point number representing how many basis points the fill deviated from the mid price.","failureModes":["Missing required fields (mid or fill) returns a validation error","Non-numeric or malformed input values may cause a 400 bad request","Payment not included or insufficient USDC payment via x402 protocol results in a 402 Payment Required response","Service unavailability or upstream errors may return 5xx responses"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-signup computation of slippage in basis points between a mid price and a fill price — especially in agent workflows that handle trade execution analysis, DeFi post-trade reporting, or execution quality monitoring where a lightweight on-demand API call is preferred over in-house arithmetic or heavier analytics platforms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.427Z","isFirstParty":false,"canonicalSlug":"delx-commerce-slippage-bps-calculator-f842ab3f"}