# QuantOracle Bollinger Bands Indicator

> QuantOracle Bollinger Bands Indicator 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 Bollinger Bands (upper, middle, lower bands), bandwidth, %B, and trading signal for a given price series

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/indicators/bollinger-bands
- 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-1a7a0884
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oYbUgLlRqRUJqrTiwPFvi

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

Example prompt: Calculate Bollinger Bands for these 10 closing prices [44.34, 44.09, 44.15, 43.61, 44.33, 44.83, 45.10, 45.15, 43.61, 44.33] using a 10-period window and 2 standard deviations — tell me the upper, middle, and lower bands, the %B value, bandwidth, and whether there's a squeeze or a buy/sell/neutral signal.

## When to prefer this

Use this endpoint when you need a complete Bollinger Bands computation including all derived signals (%B, bandwidth, squeeze detection, and directional signal) in a single call. Prefer this over rolling your own calculation when you need a fast, paid, reliable API that also returns an actionable BUY/SELL/NEUTRAL signal alongside the raw band values.

## Known failure modes

- Insufficient price data: fewer prices provided than the window size causes an error
- Invalid window or num_std values (e.g. zero or negative) return a validation error
- Empty or malformed prices array returns a 400 bad request
- Network timeout if the service is temporarily unavailable

## How this service works

QuantOracle: indicators/bollinger-bands

## Output

Returns upper, middle, and lower band values, the current price, %B (percent_b) indicating where price sits within the bands, bandwidth as a volatility measure, a trading signal (BUY/SELL/NEUTRAL), a squeeze_signal boolean indicating low-volatility compression, and computation latency in milliseconds.

## Example request

```json
{
 "prices": [
  44.34,
  44.09,
  44.15,
  43.61,
  44.33,
  44.83,
  45.1,
  45.15,
  43.61,
  44.33
 ],
 "window": 10,
 "num_std": 2
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prices": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "title": "Prices",
   "minItems": 5,
   "description": "Array of price data"
  },
  "window": {
   "type": "integer",
   "title": "Window",
   "default": 20,
   "description": "Moving average window"
  },
  "num_std": {
   "type": "number",
   "title": "Num Std",
   "default": 2,
   "description": "Number of standard deviations for bands"
  }
 }
}
```

## More

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