{"uid":"cap_YtAVh7Q_9tMKsGGwZHlpp","slug":"stablecoin-peg-deviation-bps-59badd1e","name":"Stablecoin Peg Deviation Bps","description":"Peg deviation in bps from target (usually 1.0). Call when monitoring stablecoin depegs with caller prices. Returns deviation_bps 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/peg-deviation-bps","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_P_C1pbQROkAo-ezqpn0QE","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 the deviation in basis points between an observed stablecoin price and its target peg (typically 1.0), returning a deterministic JSON result.","exampleAgentPrompt":"Calculate the peg deviation in basis points for a stablecoin that has a target peg of 1.0 and is currently trading at 0.9942.","exampleUseCases":[{"title":"Depeg alert threshold check","prompt":"USDC is trading at 0.9965 right now — can you calculate how many basis points that is off its 1.0 peg so I can decide whether to trigger my depeg alert?"},{"title":"DeFi risk dashboard monitoring","prompt":"I'm running a stablecoin risk dashboard. DAI is currently priced at 1.0043. What's the peg deviation in basis points from its 1.0 target?"},{"title":"Liquidation buffer assessment","prompt":"My protocol uses USDT pegged to 1.0 and the current price feed shows 0.9871 — compute the basis point deviation so I can check if it breaches my liquidation buffer threshold."}],"resultDescription":"Returns a JSON object containing `deviation_bps`, a numeric value representing how many basis points the observed price deviates from the target peg. The computation is deterministic, local math only — no live feeds or external data sources are consulted.","failureModes":["Missing required fields (`peg` or `price`) returns a 400-level error","Non-numeric input values cause validation failure","Payment of $0.001 USDC via x402 on Base must succeed before computation is returned; failed payment yields a 402 response","Extreme or nonsensical price values (e.g. negative prices) may produce unexpected bps results"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, server-side calculation of stablecoin peg deviation in basis points using caller-supplied prices — ideal for agents that already have market prices from their own feed and just need the bps math computed reliably without API keys, RPC calls, or live data dependencies. Prefer this over building the math in-agent when you want a consistent, auditable computation for monitoring, alerting, or risk threshold checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:58:16.373Z","isFirstParty":false}