# QuantOracle Crypto Rebalance Threshold

> QuantOracle Crypto Rebalance Threshold 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).

Calculates optimal rebalancing threshold percentages for a cryptocurrency portfolio to minimize drift and transaction costs

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/crypto/rebalance-threshold
- 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-15a20c27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ruGd4YM7gM0E2FvnyfXli

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

Example prompt: What's the optimal rebalancing threshold for my crypto portfolio with target weights of 50% BTC, 30% ETH, and 20% SOL, assuming transaction fees of 0.25% per trade and a monthly rebalancing review?

## When to prefer this

Use this endpoint when you need a mathematically grounded, cost-aware rebalancing threshold for a crypto portfolio rather than using a fixed arbitrary percentage. It is especially useful when transaction fees vary and you want to avoid over-trading. Prefer this over generic portfolio tools when working specifically with crypto assets and needing a quantitative trigger level.

## Known failure modes

- Invalid or missing portfolio weights that don't sum to 100% — returns 400 validation error
- Negative or zero transaction cost values — returns 400 bad request
- Unsupported asset tickers or unrecognized crypto symbols — returns 422 unprocessable entity
- Malformed request body or missing required fields — returns 400 with field-level error details
- Service unavailability or timeout — returns 503 or 504

## How this service works

QuantOracle: crypto/rebalance-threshold

## Output

Returns a computed rebalancing threshold — the percentage drift from target allocations that should trigger a rebalance — along with cost-adjusted trigger bands and a recommended tolerance range that balances tracking error against transaction costs.

## Example request

```json
{
 "holdings": [
  {
   "asset": "BTC",
   "current_value": 48000,
   "target_weight": 40,
   "current_weight": 48
  },
  {
   "asset": "ETH",
   "current_value": 27000,
   "target_weight": 30,
   "current_weight": 27
  },
  {
   "asset": "USDC",
   "current_value": 25000,
   "target_weight": 30,
   "current_weight": 25
  }
 ],
 "min_trade_usd": 50,
 "transaction_cost_pct": 0.25
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "holdings": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "Holding",
    "required": [
     "asset",
     "current_value",
     "target_weight"
    ],
    "properties": {
     "asset": {
      "type": "string",
      "title": "Asset",
      "description": "Asset name or ticker"
     },
     "current_value": {
      "type": "number",
      "title": "Current Value",
      "description": "Current value in USD"
     },
     "target_weight": {
      "type": "number",
      "title": "Target Weight",
      "description": "Target portfolio weight (0-1)"
     }
    }
   },
   "title": "Holdings",
   "description": "Array of current portfolio holdings"
  },
  "min_trade_usd": {
   "type": "number",
   "title": "Min Trade Usd",
   "default": 10,
   "description": "Minimum trade size in USD"
  },
  "threshold_pct": {
   "type": "number",
   "title": "Threshold Pct",
   "default": 5,
   "description": "Rebalance trigger threshold as percentage"
  }
 }
}
```

## More

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