# finmath Funding APR Calculator

> finmath Funding APR Calculator is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts a perpetual futures funding rate into an annualized percentage rate (APR), accounting for funding interval frequency

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/funding_apr
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-funding-apr-calculator-8f8dcbc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9x2lfKOkWIbAlMYMIYFkJ

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 finmath-funding-apr-calculator-8f8dcbc1 -d '<json body>'
```

Example prompt: What's the annualized APR for a perp with a funding rate of 0.01% paid 3 times a day?

## When to prefer this

Use this endpoint when you need exact, deterministic arithmetic to annualize a crypto perpetual futures funding rate — especially when LLM-native math would be unreliable. Ideal when you know the per-interval funding rate and how many times per day it is charged and need a precise APR figure for yield comparisons, carry trade analysis, or cost-of-capital calculations.

## Known failure modes

- Missing required funding_rate field returns validation error
- Invalid non-numeric values for funding_rate or intervals_per_day cause rejection
- intervals_per_day of zero may cause division error or undefined result
- Payment failure or insufficient USDC balance returns 402 payment required

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a computed annualized funding APR value derived from the raw funding rate and funding interval frequency, along with metadata about the calculation.

## Example request

```json
{
 "funding_rate": 0.0001,
 "intervals_per_day": 8
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "funding_rate"
 ],
 "properties": {
  "funding_rate": {
   "type": "number",
   "description": "funding_rate"
  },
  "intervals_per_day": {
   "type": "number",
   "description": "intervals_per_day"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-funding-apr-calculator-8f8dcbc1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
