{"uid":"cap_YCrz1OTv_fjkFLqmiVXGf","slug":"take-profit-price-from-entry-and-percent-c3f5c414","name":"Take-Profit Price from Entry and Percent","description":"Take-profit price from entry and target percent move. Call when placing TP levels from percent playbooks. Returns take-profit price 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/take-profit-pct","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pct":{"type":"number","description":"Input field: pct."},"side":{"type":"string","description":"Input field: side."},"entry":{"type":"integer","description":"Input field: entry."}}},"responseSchema":{"type":"json","example":{"pct":0.05,"side":"long","entry":100,"schema":"delx/util-take-profit-pct/v1","take_profit":105}},"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_lAre9g1-HveXg_M5nslAD","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 a take-profit price level given an entry price, a target percent move, and a trade side (long/short).","exampleAgentPrompt":"I'm long from an entry of 42000, what's my take-profit price if I want to exit at a 5% gain?","exampleUseCases":[{"title":"Long trade TP level setup","prompt":"I bought BTC at 63500 and I want to take profit at 8% above my entry — what's my target exit price?"},{"title":"Short position exit targeting","prompt":"I'm short from 3200 on ETH and my playbook says take profit at 4% down — what price should I set my TP order at?"},{"title":"Percent-based playbook automation","prompt":"My system always takes profit at 6.5% from entry. I entered long at 185.50 — compute the exact take-profit price so I can place the order."}],"resultDescription":"Returns a deterministic JSON object containing the calculated take-profit price derived from the entry price and the target percent move, adjusted for trade side (long or short). No external data sources are used; the result is pure local arithmetic.","failureModes":["Missing required fields (entry, pct, side) return a validation error","Invalid side value (not 'long' or 'short') may return an error or unexpected result","Non-numeric or negative entry/pct values may cause computation errors","Network or payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, fee-simple calculation of a take-profit price level from a known entry price and a percent target, especially in automated trading workflows or playbook-driven systems where no live market data or external API keys are available or desired. Prefer this over manual calculation when operating at scale or within agent pipelines that need reliable JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:57:07.976Z","isFirstParty":false}