{"uid":"cap_iAbyPSAxAYjVrZ7TjqD6p","slug":"arbipulse-profit-calculator-102afb9d","name":"ArbiPulse Profit Calculator","description":"Itemized fee breakdown and net P&L for any arbitrage trade — fees, slippage and gas. For arbitrage and trading agents.","url":"https://arbipulse.vercel.app/api/calculator","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"days":{"type":"string","description":"holding period for yield arb in days"},"gas_usd":{"type":"string","description":"estimated gas cost in USD"},"arb_type":{"type":"string","description":"spot | yield | perps | flash | sports"},"exit_price":{"type":"string","description":"sell price (or deposit APY for yield arb)"},"entry_price":{"type":"string","description":"buy price (or borrow APY for yield arb)"},"slippage_bps":{"type":"string","description":"expected price impact in basis points"},"flash_fee_bps":{"type":"string","description":"flash loan fee in bps (0 for Balancer, 9 for Aave)"},"taker_fee_bps":{"type":"string","description":"exchange taker fee in basis points (e.g. 10 = 0.10%)"},"bridge_fee_usd":{"type":"string","description":"bridge cost for cross-chain arb (0 if same chain)"},"trade_size_usd":{"type":"string","description":"position size in USD, e.g. 10000"},"withdrawal_fee_usd":{"type":"string","description":"exchange withdrawal fee in USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"errors":{"type":"object","description":"Documented error responses, keyed by HTTP status code","additionalProperties":{"type":"object","required":["description"],"properties":{"example":{"type":"object"},"description":{"type":"string"}}}},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"inputs":{"gas_usd":0.5,"arb_type":"spot","exit_price":67950,"entry_price":67800,"slippage_bps":5,"taker_fee_bps":10,"trade_size_usd":10000},"verdict":"NOT VIABLE — costs exceed spread","suggestion":"This spot arb is marginal at $10k. Minimum $50k+ for positive P&L. Consider perps funding carry for better risk-adjusted returns.","fee_breakdown":{"gas_usd":0.5,"slippage_usd":5,"flash_fee_usd":0,"bridge_fee_usd":0,"total_costs_pct":0.255,"total_costs_usd":25.5,"taker_fee_buy_usd":10,"taker_fee_sell_usd":10,"withdrawal_fee_usd":0},"net_profit_pct":-0.034,"net_profit_usd":-3.38,"scale_analysis":[{"net_pct":0.032,"size_usd":50000,"net_profit_usd":16.1},{"net_pct":0.057,"size_usd":100000,"net_profit_usd":57.2},{"net_pct":0.072,"size_usd":500000,"net_profit_usd":357.5}],"gross_spread_pct":0.221,"gross_spread_usd":22.12,"break_even_analysis":{"gap_bps":4,"current_spread_bps":22,"min_spread_bps_to_break_even":26},"annualized_yield_pct":null}},"example":{"request":{"asset":"ETH","buyPrice":3420,"sellPrice":3438,"buyExchange":"binance","positionSize":5,"sellExchange":"coinbase"},"response":{"inputs":{"days":1,"gas_usd":0.5,"arb_type":"spot","exit_price":0,"entry_price":0,"slippage_bps":5,"flash_fee_bps":0,"taker_fee_bps":10,"bridge_fee_usd":0,"trade_size_usd":10000,"withdrawal_fee_usd":0},"verdict":"NOT VIABLE — costs exceed spread","suggestion":"Spread is too thin at this size. Minimum size for breakeven: ~$∞ USD.","fee_breakdown":{"gas_usd":0.5,"slippage_usd":5,"flash_fee_usd":0,"bridge_fee_usd":0,"total_costs_pct":0.255,"total_costs_usd":25.5,"taker_fee_buy_usd":10,"taker_fee_sell_usd":10,"withdrawal_fee_usd":0},"net_profit_pct":-0.255,"net_profit_usd":-25.5,"scale_analysis":[{"net_pct":-0.251,"size_usd":50000,"net_profit_usd":-125.5},{"net_pct":-0.2505,"size_usd":100000,"net_profit_usd":-250.5},{"net_pct":-0.2501,"size_usd":500000,"net_profit_usd":-1250.5}],"gross_spread_pct":0,"gross_spread_usd":0,"break_even_analysis":{"gap_bps":-26,"current_spread_bps":0,"min_spread_bps_to_break_even":26},"annualized_yield_pct":null}},"exampleRequest":{"asset":"ETH","buyPrice":3420,"sellPrice":3438,"buyExchange":"binance","positionSize":5,"sellExchange":"coinbase"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_04erhXmFbxQ5gqZAzjOdu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an itemized fee breakdown and net profit/loss calculation for any arbitrage trade","exampleAgentPrompt":"Can you calculate the net P&L for an arbitrage trade — buying ETH at $3,420 on Binance and selling at $3,438 on Coinbase with a position size of 5 ETH? I want to see the full itemized fee breakdown so I know if it's actually profitable.","exampleUseCases":[{"title":"Verify DEX-to-DEX swap profitability","prompt":"I found an arbitrage opportunity swapping USDC to DAI on Uniswap V3 versus SushiSwap. The price difference looks decent, but I need to see the actual net profit after gas fees and slippage costs before I execute. Can you break down all the costs for me?"},{"title":"Cross-exchange spot trading validation","prompt":"I want to buy Bitcoin on Kraken at $42,500 and immediately sell it on Bitstamp at $42,780. My position size is 0.5 BTC. Walk me through the itemized breakdown of trading fees, spreads, and any other costs so I can see if this arb is worth executing."},{"title":"Perpetual futures arbitrage check","prompt":"There's a spread between the BTC spot price on Bybit and the perpetual futures on Deribit. Before I hedge with a perps trade, I need a detailed fee breakdown showing the trading fees, funding costs, and slippage impact so I know my true profit margin."}],"resultDescription":"An itemized breakdown of all fees (trading fees, gas, slippage, etc.) applied to the trade, plus the net profit or loss after all costs are deducted, enabling the agent to determine whether the arbitrage opportunity is genuinely profitable.","failureModes":["Missing required trade parameters returns an error","Invalid price or size values cause computation failure","Unsupported exchange or venue identifiers return an error","Extreme edge-case inputs (zero size, negative prices) may return validation errors","Payment failure (x402) blocks access to the endpoint"],"whenToPreferThis":"Use this endpoint when you have identified a potential arbitrage opportunity and need to verify net profitability after all costs before executing. Ideal after using ArbiPulse price-scanning endpoints (DEX, CEX, perps) to confirm whether a detected spread actually yields profit once fees, gas, and slippage are accounted for.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:46:48.349Z","isFirstParty":false}