{"uid":"cap__OroOLRk5zN-gf52GohDO","slug":"break-even-price-calculator-a808ace1","name":"Break-even Price Calculator","description":"Break-even exit price including a fee rate on the round-turn. Call when setting targets that actually clear fees. Returns break-even 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/break-even-price","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"side":{"type":"string","description":"Input field: side."},"entry":{"type":"integer","description":"Input field: entry."},"fee_rate":{"type":"number","description":"Input field: fee rate."}}},"responseSchema":{"type":"json","example":{"side":"long","entry":100,"schema":"delx/util-break-even-price/v1","fee_rate":0.001,"break_even":100.2}},"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_WXJMOrn6prT_8Q2TXOqsO","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 break-even exit price for a trade position, accounting for a round-turn fee rate, so that profit targets actually clear all fees.","exampleAgentPrompt":"I entered a long position at 42500 with a round-turn fee rate of 0.001 — what exit price do I need just to break even after fees?","exampleUseCases":[{"title":"Long trade fee-adjusted target setting","prompt":"I'm long from an entry of 3200 with a 0.05% fee rate — calculate the exact break-even exit price so I know the minimum I need to hit just to cover both legs of the trade."},{"title":"Short position break-even with commissions","prompt":"I shorted at 1850 and my exchange charges 0.002 round-turn — what's my break-even price on the exit so I don't lose money after fees?"},{"title":"Bot order target validation","prompt":"Before my trading bot places a take-profit order, tell me the break-even price for a long entry at 65000 with a 0.0015 fee rate so I can make sure the target is above it."}],"resultDescription":"A deterministic JSON object containing the computed break-even exit price — the minimum exit level at which the round-trip trade (entry plus exit) nets zero after applying the specified fee rate on both legs. No market data is fetched; all arithmetic is performed locally.","failureModes":["Missing required fields (side, entry, fee_rate) returns a validation error","Invalid side value (not long/short or equivalent) causes a bad request error","Negative or zero entry price produces an invalid input error","Fee rate out of plausible range may return a warning or error","Network or payment failure (x402 USDC payment not processed) blocks response"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, fee-aware break-even price calculated locally without any live market feed, API key, or external RPC dependency. Prefer it over manual calculation when automating trade target setting in bots or agents where fee-adjusted targets must be computed reliably and cheaply at $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:01:35.972Z","isFirstParty":false}