{"uid":"cap_5_RLEV3g483gNR-vHLYLo","slug":"delx-commerce-mid-price-calculator-9d39816b","name":"Delx Commerce Mid-Price 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/mid-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ask":{"type":"number","description":"Input field: ask."},"bid":{"type":"number","description":"Input field: bid."}}},"responseSchema":{"type":"json","example":{"ask":100.5,"bid":99.5,"mid":100,"schema":"delx/util-mid-price/v1"}},"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_HhLYcQC0UOrKZB2eGz9jO","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 mid-market price from a bid and ask value pair, returning the arithmetic midpoint","exampleAgentPrompt":"What's the mid price if the bid is 99.5 and the ask is 100.5?","exampleUseCases":[{"title":"Fair value for trade execution","prompt":"The bid on this asset is 98.20 and the ask is 101.80 — what's the mid price I should use as a fair value reference for my order?"},{"title":"Spread analysis for market maker","prompt":"I'm quoting a market with a bid of 205.50 and an ask of 206.00. Can you calculate the exact midpoint so I can center my quotes?"},{"title":"Price reference for portfolio valuation","prompt":"To value my position, I need the mid-market price — the bid is 1450.75 and the ask is 1451.25, can you compute the midpoint?"}],"resultDescription":"Returns a JSON object containing the original ask, the original bid, and the computed mid price (arithmetic average of ask and bid), along with a schema identifier string 'delx/util-mid-price/v1'.","failureModes":["Missing ask or bid field returns an error","Non-numeric values for ask or bid cause validation failure","Ask lower than bid may produce unexpected results","Payment failure via x402 prevents API access","Network timeout on the Base or Solana payment layer"],"whenToPreferThis":"Choose this endpoint when you need a simple, verifiable, pay-per-call mid-price calculation without any signup friction. It is ideal for AI agents that need real-time midpoint computation in a financial context and want cryptographically verifiable delivery settled in USDC. It does not require pre-provisioned API keys or subscriptions, making it perfect for ephemeral or automated agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.804Z","isFirstParty":false,"canonicalSlug":"delx-commerce-mid-price-calculator-9d39816b"}