# ArbiPulse Profit Calculator

> ArbiPulse Profit Calculator is a paid API for AI agents from arbipulse.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns an itemized fee breakdown and net profit/loss calculation for any arbitrage trade

## Facts

- Endpoint: GET https://arbipulse.vercel.app/api/calculator
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arbipulse-profit-calculator-102afb9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iAbyPSAxAYjVrZ7TjqD6p

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability arbipulse-profit-calculator-102afb9d
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Itemized fee breakdown and net P&L for any arbitrage trade — fees, slippage and gas. For arbitrage and trading agents.

## Output

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.

## Example request

```json
{
 "asset": "ETH",
 "buyPrice": 3420,
 "sellPrice": 3438,
 "buyExchange": "binance",
 "positionSize": 5,
 "sellExchange": "coinbase"
}
```

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arbipulse-profit-calculator-102afb9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arbipulse.vercel.app](https://www.zero.xyz/host/arbipulse.vercel.app/llms.txt)
