# ArbiPulse Trade Fee & P&L Calculator

> ArbiPulse Trade Fee & P&L Calculator is a paid API for AI agents from arbipulse.theaslangroupllc.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns an itemized breakdown of fees, slippage, and gas costs plus net profit/loss for any arbitrage trade

## Facts

- Endpoint: GET https://arbipulse.theaslangroupllc.com/api/calculator
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arbipulse-trade-fee-p-l-calculator-057217e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3mYirgAxytnqGAgb8ia7-

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-trade-fee-p-l-calculator-057217e9
```

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

## When to prefer this

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.

## Known failure modes

- 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

## 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 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.

## 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-trade-fee-p-l-calculator-057217e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arbipulse.theaslangroupllc.com](https://www.zero.xyz/host/arbipulse.theaslangroupllc.com/llms.txt)
