{"uid":"cap_sQI_ODq99bPgCiOYpHNEP","slug":"delx-commerce-peg-deviation-bps-calculator-ad935420","name":"Delx Commerce Peg Deviation 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/peg-deviation-bps?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"peg":{"type":"number","description":"Target peg price (usually 1.0)"},"price":{"type":"number","description":"Observed price"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-peg-deviation-bps/v1","deviation_bps":-20.00000000000002}},"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_Bl3wQno4sulU9TRYnMUIJ","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 deviation of an observed price from a target peg price, expressed in basis points (BPS).","exampleAgentPrompt":"Calculate how many basis points USDC is deviating from its $1.00 peg given the current observed price of $0.9980.","exampleUseCases":[{"title":"Stablecoin depeg alert monitoring","prompt":"USDC is trading at $0.9978 right now — how many basis points is that off from its $1.00 peg? I want to know if it's bad enough to trigger an alert."},{"title":"Algorithmic stablecoin health check","prompt":"Our algorithmic stablecoin is supposed to hold $1.00, but it's currently at $1.0045. What's the deviation from peg in basis points?"},{"title":"Arbitrage opportunity sizing","prompt":"I see DAI trading at $0.9965 against a $1.00 target peg. Can you give me the exact BPS deviation so I can decide whether the arbitrage spread is worth acting on?"}],"resultDescription":"A JSON object containing the schema identifier ('delx/util-peg-deviation-bps/v1') and the computed deviation value in basis points as a floating-point number. Negative values indicate the observed price is below peg; positive values indicate it is above peg.","failureModes":["Missing required 'peg' or 'price' fields returns a validation error","Division-by-zero edge case if peg is set to 0","Payment failure via x402 protocol results in a 402 response and no computation","Extremely large or malformed numeric inputs may return unexpected floating-point results"],"whenToPreferThis":"Use this endpoint when you need a precise, mathematically verified BPS deviation from a peg price without setting up any account or subscription. It is ideal for DeFi agents, stablecoin monitoring bots, or risk management pipelines that need a lightweight, pay-per-call computation with verifiable delivery over USDC on Base or Solana.","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-peg-deviation-bps-calculator-ad935420"}