# true402 Quant Calculator

> true402 Quant Calculator is a paid API for AI agents from true402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Runs a named quantitative/mathematical calculator function with supplied parameters, paid per call via HTTP 402.

## Facts

- Endpoint: POST https://true402.dev/api/v1/quant
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/true402-quant-calculator-2d435c4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FxGC8UYMGFI3BM0WRyChd

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 true402-quant-calculator-2d435c4c -d '<json body>'
```

Example prompt: Run the 'black_scholes' calculator on true402 with these params: stock price 150, strike 155, risk-free rate 0.05, volatility 0.2, time to expiry 0.5 years — I need the option price.

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call quantitative computation without standing up your own math infrastructure — especially useful for financial calculations (options pricing, volatility, portfolio analytics) in agent pipelines that can handle x402 micropayments. Prefer it over general-purpose code execution when a named calculator function matching your use case exists on the true402 marketplace.

## Known failure modes

- Unknown function name returns an error or empty result
- Malformed or missing params object causes a 400-level rejection
- Insufficient wallet balance triggers HTTP 402 payment-required response
- Unsupported parameter types or out-of-range values may cause computation errors
- No response schema defined, so output structure varies by function

## How this service works

The machine-native marketplace. Wallet = identity. Pay per call with HTTP 402.

## Output

A JSON object containing the output of the named quantitative function — typically a numeric result or structured computation output depending on which calculator was invoked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "params",
  "function"
 ],
 "properties": {
  "params": {
   "type": "object",
   "description": "Parameters for the chosen function"
  },
  "function": {
   "enum": [
    "black_scholes",
    "implied_volatility",
    "kelly",
    "sharpe",
    "sortino",
    "max_drawdown",
    "historical_var",
    "cvar",
    "cagr",
    "volatility"
   ],
   "type": "string",
   "description": "Which calculator to run"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object"
  },
  "function": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/true402-quant-calculator-2d435c4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from true402.dev](https://www.zero.xyz/host/true402.dev/llms.txt)
