{"uid":"cap_3mYirgAxytnqGAgb8ia7-","slug":"arbipulse-trade-fee-p-l-calculator-057217e9","name":"ArbiPulse Trade Fee & P&L 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.theaslangroupllc.com/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":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/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_slatmNmF3qlPUe2To3Kh4","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 breakdown of fees, slippage, and gas costs plus net profit/loss for any arbitrage trade","exampleAgentPrompt":"Can you calculate the full fee breakdown and net P&L for an arbitrage trade — I'm buying ETH at $3,200 on Uniswap and selling at $3,215 on Binance, trade size $50,000, with gas at 30 gwei and 0.3% slippage tolerance?","exampleUseCases":[{"title":"Flash loan arbitrage profitability check","prompt":"I'm considering a flash loan arbitrage between Aave and Curve for DAI — borrowing 100k DAI, swapping through Curve, and selling on Uniswap. Can you break down all the fees, gas, and slippage so I know if it's actually worth the complexity?"},{"title":"Cross-exchange spot trading cost analysis","prompt":"Show me the itemized cost breakdown for buying 5 BTC on Kraken at $42,500 and immediately selling on Coinbase at $42,750 — I need to see exactly how much I'll net after all fees and slippage."},{"title":"DEX arbitrage opportunity validation","prompt":"I found a $3,500 profit opportunity trading USDC across three different protocols — can you give me the full fee and gas breakdown so I can decide if it's still profitable after everything?"}],"resultDescription":"An itemized cost report including exchange/protocol fees per leg, estimated slippage cost in dollar terms, gas cost in USD, total cost sum, gross profit from the price differential, and final net P&L — giving the agent a clear go/no-go profitability signal for the trade.","failureModes":["Missing required trade parameters (entry/exit price, size) returns 400 error","Unsupported exchange or venue identifier returns validation error","Gas price out of range or zero returns computation error","Invalid slippage value (negative or >100%) returns 400 bad request","Payment not included or insufficient USDC returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when an agent needs a precise, itemized cost analysis before executing or recommending an arbitrage trade — especially when gas costs and slippage are material to profitability. Ideal for pre-trade validation across DeFi, DEX, perps, and cross-exchange arb strategies. Complements the ArbiPulse opportunity scanner and execution package endpoints by providing the cost layer between signal and execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:39:38.612Z","isFirstParty":false}