Skip to content
Fourohtwo

Cost Basis Distribution Heatmap

x402.glassnode.com/v1/metrics/indicators/cost_basis_distribution_heatmap

Cost Basis Distribution Heatmap — The Cost Basis Distribution (CBD) Heatmap is a price-versus-time visualization of supply density across cost-basis levels over a specified period (e.g. 1 month, 1 year). The y-axis represents the cost basis on a log scale, set from 1% below the minimum price to 1% above the maximum price within the chosen period, and each pixel's color intensity reflects the conce

BaseAnswering
GEThttps://x402.glassnode.com/v1/metrics/indicators/cost_basis_distribution_heatmap

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.glassnode.com/v1/metrics/indicators/cost_basis_distribution_heatmap?a=BTC&i=24h");
console.log(await res.json());

Example input

{
  "a": "BTC",
  "i": "24h"
}

More from Glassnode