# QuantOracle Macro Inflation-Adjusted Return Calculator

> QuantOracle Macro Inflation-Adjusted Return Calculator is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Computes year-by-year real vs. nominal value series for an investment given an inflation rate and nominal return, using the Fisher equation

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/macro/inflation-adjusted
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-8e77455f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rhTSSUWw_TYrZ27iTyvY5

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 api-quantoracle-dev-8e77455f -d '<json body>'
```

Example prompt: I invested $10,000 and expect a nominal return of 8% per year with inflation running at 3.5% — can you show me the real vs nominal value each year for the next 10 years, including how much purchasing power I'm losing and what my actual inflation-adjusted return is?

## When to prefer this

Use this endpoint when you need a rigorous, Fisher-equation-based decomposition of nominal returns into real returns and inflation drag, with a full year-by-year value series. Prefer over simple CPI deflators when you want purchasing-power-halving estimates and exact vs approximate real return comparisons in a single call.

## Known failure modes

- Missing required fields (initial_value, nominal_return_pct, inflation_rate_pct, periods) returns 400 validation error
- Negative periods or zero initial_value may return 422 unprocessable entity
- Extremely high inflation or return rates may produce unstable series
- Payment not included or insufficient USDC balance returns 402 payment required

## How this service works

QuantOracle: macro/inflation-adjusted

## Output

Returns a year-by-year series of nominal and real values, the exact Fisher-equation real return percentage, inflation drag percentage, purchasing power multiplier, and estimated years until purchasing power halves.

## Example request

```json
{
 "input": {
  "body": {
   "periods": 10,
   "initial_value": 10000,
   "inflation_rate_pct": 3.5,
   "nominal_return_pct": 8
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "periods": {
   "anyOf": [
    {
     "type": "integer"
    },
    {
     "type": "null"
    }
   ],
   "title": "Periods",
   "description": "Optional number of periods for cumulative calculation"
  },
  "initial_value": {
   "anyOf": [
    {
     "type": "number"
    },
    {
     "type": "null"
    }
   ],
   "title": "Initial Value",
   "description": "Optional initial value for cumulative calculation"
  },
  "inflation_rate_pct": {
   "type": "number",
   "title": "Inflation Rate Pct",
   "description": "Inflation rate as percentage"
  },
  "nominal_return_pct": {
   "type": "number",
   "title": "Nominal Return Pct",
   "description": "Nominal return as percentage"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-8e77455f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
