{"uid":"cap_LZ-_ePLp-HXdQPPADpdBt","slug":"slippage-basis-points-calculator-cd83cf6a","name":"Slippage Basis Points Calculator","description":"Slippage in basis points versus mid for execution reports. Call when venue quality scorecards in bps units operators expect. Returns slippage bps vs mid 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.","url":"https://api.delx.ai/api/v1/x402/slippage-bps","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_vb0ygQQ9skIEM065BLPOf","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 trade slippage in basis points versus the mid price from a fill price and mid price, returning a deterministic JSON result.","exampleAgentPrompt":"Calculate the slippage in basis points versus mid for a fill where the mid price was 10000 and the fill price was 10015.","exampleUseCases":[{"title":"Venue quality scorecard reporting","prompt":"I need to score our execution venue — the mid was 5000 and we got filled at 5008. What's the slippage in basis points versus mid?"},{"title":"Post-trade execution analysis","prompt":"We just filled an order at 102.50 against a mid of 102.00. Can you calculate the slippage in bps so I can log it in our execution report?"},{"title":"Comparing fills across brokers","prompt":"Broker A filled us at 9980 with a mid of 10000. What's the bps slippage so I can compare it against other brokers in our scorecard?"}],"resultDescription":"A deterministic JSON object containing the computed slippage in basis points versus the mid price, derived purely from local arithmetic on the provided mid and fill inputs — no live market data or external feeds involved.","failureModes":["Missing or null mid price causes computation failure","Invalid numeric types for mid or fill fields return an error","Division by zero if mid is 0","Extremely large or small values may cause precision edge cases"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, deterministic computation of slippage in basis points versus mid for a single fill — especially in execution reporting, venue scorecards, or post-trade analytics workflows where you already have the mid and fill prices and just need the bps math done reliably without any external data dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:45.101Z","isFirstParty":false}