omni_funding_rate_arbitrage
Calculates market-neutral annualized APR, daily funding income, annual net yield, and breakeven holding days for cash-and-carry perpetual funding arbitrage, eliminating manual formula errors.
Instructions
Perpetual Swap Funding Rate Arbitrage Annualized Yield (Cash & Carry). Calculate market-neutral annualized return (APR) for funding rate arbitrage (Cash & Carry: Long Spot + Short Perpetual Swap). Discipline: CRYPTO. Governing mathematical model / formula: Annualized APR (%) = (8-Hour Funding Rate % × 3 funding periods/day) × 365 days.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of annualized_funding_apr (Market-Neutral Annualized APR), annual_net_yield_usd (Projected Annual Net Cash Flow), daily_funding_income_usd (Daily Funding Payment Received), breakeven_holding_days (Trading Fee Breakeven Horizon) using arbitrage_capital_usd (Total Strategy Capital ($ USD)), average_8h_funding_rate_pct (8-Hour Funding Rate (%) in %), taker_trading_fee_pct (Round-Trip Trading Fee (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Perpetual Swap Funding Rate Arbitrage Annualized Yield (Cash & Carry)' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "funding-rate-arbitrage"
category (string): "crypto"
name (string): "Perpetual Swap Funding Rate Arbitrage Annualized Yield (Cash & Carry)"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.annualized_funding_apr (Market-Neutral Annualized APR): Formatted display string (e.g. '38.33%')
metrics.annual_net_yield_usd (Projected Annual Net Cash Flow): Formatted display string (e.g. '$9,581.00 / yr')
metrics.daily_funding_income_usd (Daily Funding Payment Received): Formatted display string (e.g. '$26.25 / day')
metrics.breakeven_holding_days (Trading Fee Breakeven Horizon): Formatted display string (e.g. '1.5 Days')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_funding_rate_arbitrage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arbitrage_capital_usd | No | Total Strategy Capital ($ USD). Split 50/50 between Long Spot and Short Perp. Default: 50000. Min: 1000. Max: 10000000. | |
| taker_trading_fee_pct | No | Round-Trip Trading Fee (%) (%). Entry and exit taker/maker fees on spot and perp. Default: 0.08. Min: 0.02. Max: 0.3. | |
| average_8h_funding_rate_pct | No | 8-Hour Funding Rate (%) (%). Average 8-hour rate (0.01% = 10.9% APR, 0.03% = 32.8% APR). Default: 0.035. Min: -0.1. Max: 0.5. |