# QuantOracle Batch Computation

> QuantOracle Batch Computation is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Executes multiple QuantOracle quantitative finance computations in a single batched API call

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/batch
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-b3aaa749
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vm6kgZvecJaUQfXPNaqD7

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-b3aaa749 -d '<json body>'
```

Example prompt: I need to run three QuantOracle calculations at once — an IRR on a cash flow series, a probabilistic Sharpe ratio on my portfolio returns, and a regime classification on the S&P 500 — can you batch all three into a single call so I get all the results together?

## When to prefer this

Use this endpoint when you need to run two or more QuantOracle computations and want to minimize latency and API call overhead by combining them. Prefer this over calling individual endpoints sequentially when performing portfolio analysis pipelines, multi-metric dashboards, or automated workflows that require results from several calculations at once. Ideal for agentic workflows where multiple quantitative outputs feed into a downstream decision.

## Known failure modes

- One or more sub-requests contain invalid parameters, returning partial success with per-item errors
- Batch size exceeds maximum allowed number of requests, returning a 400 error
- Unknown or unsupported computation type specified in a sub-request
- Malformed request body causes entire batch to fail with 400
- Payment not attached or insufficient USDC balance causes 402 error
- Timeout if batch contains too many computationally expensive operations

## How this service works

Free, fast quant finance calculators powered by a deterministic, multi-chain API. Black-Scholes, options profit, Kelly, VaR, crypto liquidation, and more.

## Output

An array of computation results corresponding to each sub-request in the batch, where each result contains the output of the respective QuantOracle calculation (e.g. IRR value, Sharpe ratio with confidence, regime label, option chain metrics, etc.) along with any per-request error details if a sub-computation failed.

## Example request

```json
{
 "requests": [
  {
   "params": {
    "series": [
     1,
     2.1,
     3.2,
     4.5,
     5.8,
     6.9,
     7.2,
     8.1,
     9.3,
     10.5,
     11.2,
     12.8,
     13.5,
     14.1,
     15.3,
     16.2,
     17.8,
     18.9,
     19.5,
     20.1,
     21.3,
     22.5,
     23.7,
     24.9,
     25.2
    ]
   },
   "endpoint": "options/price"
  }
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "requests": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "BatchRequest",
    "required": [
     "endpoint",
     "params"
    ],
    "properties": {
     "params": {
      "type": "object",
      "title": "Params",
      "description": "Parameters for the endpoint",
      "additionalProperties": true
     },
     "endpoint": {
      "type": "string",
      "title": "Endpoint",
      "description": "Endpoint path, e.g. 'options/price'"
     }
    }
   },
   "title": "Requests",
   "maxItems": 100,
   "minItems": 1,
   "description": "List of computation requests (max 100)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-b3aaa749/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)
