# Glassnode Stock-to-Flow Deflection

> Glassnode Stock-to-Flow Deflection is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns the daily Bitcoin Stock-to-Flow Deflection ratio, measuring how far the current BTC price deviates from the S/F model value.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/indicators/stock_to_flow_deflection
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-stock-to-flow-deflection-86d6b45a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M9CmovPGjOqaEJJ3uSKo7

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 glassnode-stock-to-flow-deflection-86d6b45a
```

Example prompt: Can you pull the latest Bitcoin Stock-to-Flow deflection data from Glassnode so I can see how much the current BTC price is deviating from the S/F model value?

## When to prefer this

Use this endpoint when you need to assess Bitcoin's price relative to the Stock-to-Flow valuation model, identify potential market tops or bottoms based on S/F deviation, or build dashboards tracking BTC's historical relationship with its S/F model price. Prefer this over raw price feeds when the goal is model-relative valuation rather than absolute price tracking.

## Known failure modes

- Missing required 'a' (asset) query parameter returns a validation error
- Unsupported asset symbol other than 'BTC' returns an error
- Payment of $0.05 USDC not provided or rejected results in 402 Payment Required
- Invalid format or interval enum value returns a bad request error
- Downstream Glassnode data unavailability may cause 503 or empty response

## How this service works

Stock-to-Flow Deflection — Stock-to-Flow (S/F) Deflection is the ratio between the current Bitcoin price and the S/F model value. Data by Glassnode.

## Output

Returns a time-series array of objects each containing a Unix timestamp (t) and a numeric Stock-to-Flow Deflection value (v), representing the ratio of the current Bitcoin price to its S/F model-predicted price for each 24h interval.

## 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",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "enum": [
        "BTC"
       ],
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "c": {
       "enum": [
        "native"
       ],
       "type": "string",
       "description": "Currency for denominated values, e.g. usd, native"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-stock-to-flow-deflection-86d6b45a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
