{"uid":"cap_d94Q_ZGAOq0WK5rwOAaiO","slug":"delx-return-pct-10ebdd80","name":"Delx Return Pct","description":"Compute percent return between start and end values — call when computing percent return between two values. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media gen…","url":"https://api.delx.ai/api/v1/x402/return-pct","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"number","description":"Ending value for percent return."},"start":{"type":"number","description":"Starting value for percent return."}}},"responseSchema":{"type":"json","example":{"end":110,"start":100,"schema":"delx/util-return-pct/v1","return_percent":10}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KUU_uHWTe10EYdTCitLGJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the percent return between a starting value and an ending value, returning deterministic JSON","exampleAgentPrompt":"What's the percent return if I bought at 142.50 and sold at 178.25?","exampleUseCases":[{"title":"Trade PnL signal prep","prompt":"I have a batch of entry and exit prices for trades I made last month — can you calculate the percent return for each pair? Start with entry 95.00 and exit 112.50."},{"title":"Portfolio growth percentage","prompt":"My portfolio started the quarter at 50000 and ended at 63750. What's the percent return for the quarter?"},{"title":"Backtesting return normalization","prompt":"I'm building a backtest and need to normalize raw tick data into percent returns. Calculate the return for a tick that started at 3820.10 and ended at 3791.55."}],"resultDescription":"A deterministic JSON object containing the computed percent return between the provided start and end values, expressed as a numeric percentage. The response is stateless and reproducible for identical inputs.","failureModes":["Missing start or end field returns a validation error","Division by zero if start value is 0 (cannot compute percent change from zero base)","Non-numeric input for start or end causes a type error","Network or payment failure returns an HTTP 402 or connectivity error"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic percent return calculation on caller-supplied numeric values without requiring a live market data feed or external price source. Ideal for signal preprocessing pipelines, backtesting normalization, and any agentic workflow where the agent already holds the start and end values and just needs the arithmetic result in machine-readable JSON at very low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:58:34.378Z","isFirstParty":false}