# BTC On-Chain Macro Composite Signal API

> BTC On-Chain Macro Composite Signal API is a paid API for AI agents from nonvisceral-eloisa-mousily.ngrok-free.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Returns an aggregated 0–1 macro bullish/bearish score for Bitcoin plus per-signal breakdowns across hash ribbons, MVRV z-score, NUPL, Puell multiple, SOPR, realized-price ratio, Fear & Greed, and more.

## Facts

- Endpoint: GET https://nonvisceral-eloisa-mousily.ngrok-free.dev/api/macro-signal
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-on-chain-macro-composite-signal-api-b9069027
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MB1AetaFq5dVtBAs4oQZG

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 btc-on-chain-macro-composite-signal-api-b9069027
```

Example prompt: What's the current Bitcoin on-chain macro composite score, and which signals like MVRV z-score, Puell multiple, and NUPL are flashing risk-on or risk-off right now?

## When to prefer this

Choose this endpoint when you need a single, pre-aggregated on-chain macro regime score for Bitcoin that synthesizes over ten distinct on-chain metrics (MVRV, NUPL, Puell, SOPR, reserve risk, etc.) into one actionable composite — saving you from querying and weighting each metric individually. Prefer it for cycle timing, risk-on/off rotation signals, and position sizing decisions where a holistic macro view is more useful than a single indicator. Not suitable for real-time tick-level trading signals or short-term momentum; use sibling endpoints (funding, OI, CVD, liquidations) for microstructure signals.

## Known failure modes

- Stale data: state_fresh=false when the upstream onchain-macro-state.json has not been refreshed recently; bot_state_age_seconds will be large
- ngrok free-tier tunnel downtime: the underlying ngrok-free.dev hostname may go offline or rotate, causing connection errors
- Upstream on-chain data provider lag: individual signals may be missing or null if their source APIs are unavailable
- Payment failure: x402 payment of $0.03 USDC must succeed before data is returned; insufficient balance causes 402 error

## How this service works

On-chain BTC macro composite signal API: aggregated 0-1 score plus per-signal scores for hash ribbons, GEX nearest major cluster, MVRV z-score, NUPL, realized-price ratio, Puell multiple, SOPR, short-term and long-term holder MVRV, reserve risk, and Fear & Greed. Macro regime input for cycle timing, position sizing, and risk-on/off rotation. Updated from onchain-macro-state.json.

## Output

A JSON object containing: a composite_score (0–1 float, higher = more bullish/risk-on), per-signal objects each with a score, raw value or state, and optional reason (covering hash ribbons, GEX nearest major cluster, MVRV z-score, NUPL, realized-price ratio, Puell multiple, SOPR, short-term and long-term holder MVRV, reserve risk, Fear & Greed), updated_at timestamp, state_fresh boolean, composite_n_signals count, and bot_state_age_seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "gex_btc": {
       "type": "object"
      },
      "signals": {
       "type": "object",
       "description": "Per-metric score, raw value/state, and optional reason"
      },
      "updated_at": {
       "type": "string"
      },
      "state_fresh": {
       "type": "boolean"
      },
      "hash_ribbons": {
       "type": "object"
      },
      "composite_score": {
       "type": "number",
       "description": "Aggregated 0-1 macro score; higher = more bullish/risk-on"
      },
      "composite_n_signals": {
       "type": "number"
      },
      "bot_state_age_seconds": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-on-chain-macro-composite-signal-api-b9069027/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nonvisceral-eloisa-mousily.ngrok-free.dev](https://www.zero.xyz/host/nonvisceral-eloisa-mousily.ngrok-free.dev/llms.txt)
