Funding arbitrage calculator (typed-in legs)
manual_calculatorNet, net APR, breakeven and funding-halved case for two legs you describe (no live data): each leg {side: long|short, rate_pct per period, interval_hours, taker_bps, first_in_hours?}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"legs": "<legs>"
},
"name": "manual_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| leverage | No | ||
| notional | No | Position size per side in USD (default 10000) | |
| slippage_bps | No | ||
| holding_hours | No | Holding period in hours (default 168 = 7 days) |