{"uid":"cap_j1r1tnsTWDVQ93SQdbPAT","slug":"impact-price-calculator-713d426b","name":"Impact Price Calculator","description":"Expected impact price from mid and signed slippage fraction. Call when simulating worse fills before sending size. Returns impacted price from 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/impact-price","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mid":{"type":"integer","description":"Input field: mid."},"side":{"type":"string","description":"Input field: side."},"slippage_bps":{"type":"integer","description":"Input field: slippage bps."}}},"responseSchema":{"type":"json","example":{"mid":100,"side":"buy","schema":"delx/util-impact-price/v1","impact_price":100.15}},"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_mx9Ra5IInbzn5_LEIWU09","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 expected execution price after slippage given a mid price, trade side, and slippage in basis points","exampleAgentPrompt":"Before I send this buy order, calculate the impact price assuming the mid is 1800 and slippage is 30 bps on the buy side.","exampleUseCases":[{"title":"Pre-trade fill simulation for DeFi bot","prompt":"I'm about to place a buy order — mid price is 2500, slippage is 50 bps on the buy side. What execution price should I expect after impact?"},{"title":"Risk-adjusted order sizing check","prompt":"Before I size up this sell trade, compute the impact price given a mid of 42000 and 75 basis points of slippage on the sell side so I can see how bad my fill will be."},{"title":"Backtesting slippage model validation","prompt":"For my backtest, give me the impacted price from a mid of 3200 with 20 bps slippage on the buy side so I can compare it against my model's assumptions."}],"resultDescription":"Returns a deterministic JSON object containing the expected execution price after applying the signed slippage fraction to the provided mid price, adjusted for the specified trade side (buy or sell) and slippage in basis points. No live market data or RPC calls are involved — the result is computed locally from the supplied inputs.","failureModes":["Missing required fields (mid, side, or slippage_bps) returns a 400-level error","Invalid side value (not buy/sell or equivalent) may cause computation error","Non-integer mid or slippage_bps input may be rejected","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, local computation of the post-slippage execution price before submitting an order — especially when you want no dependency on live market feeds, RPC calls, or external APIs. Ideal for pre-trade simulation, backtesting pipelines, and order sizing checks where reproducibility and low latency matter. Not suitable when you need real-time market data or live order book impact estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:55:31.102Z","isFirstParty":false}