API Documentation

Newhedge API Reference

Access real-time and historical data from any of the 2314 metrics that power Newhedge dashboards, charts, and company treasury pages. Our RESTful API provides programmatic access to comprehensive Bitcoin and financial market data.

Overview

The Newhedge API enables developers to integrate our extensive dataset into their applications, dashboards, and analysis tools. All endpoints return JSON responses with time-series data that mirrors what you see on our platform.

Each chart and treasury company exposes one or more metrics that can be queried individually. Metrics return either arrays of [timestamp, value] pairs or keyed objects, depending on the data structure.

Quick Start

To get started, you'll need an API token from your account settings. Once you have your token, you can make requests to any endpoint using the base URL:

GET /api/v2/metrics/:chart_slug/:metric_name?api_token=YOUR_TOKEN
GET /api/v2/companies/:company_slug/:metric_name?api_token=YOUR_TOKEN

Browse the available charts and companies in the sidebar to find the metrics you need. Each page shows all available metrics, sample requests, and response formats.

For Cursor, Claude, ChatGPT Code Interpreter, and MCP clients, see AI agents & MCP (markdown).

Resolutions

Series are daily (day1) by default. Advanced and Enterprise accounts may request finer buckets, coarse to fine: hour12, hour4, hour1, 30mn, 10mn.

GET /api/v2/metrics/:chart_slug/:metric_name?resolution=hour1&api_token=YOUR_TOKEN

Only the metrics endpoint accepts resolution. The company, news, and price endpoints are daily-only.

A resolution request is never rejected. If the calling account is not entitled to finer data, if the metric does not ingest the bucket you asked for, or if the value is not recognised, the response is the day1 series with HTTP 200 — not a 400 or 404. Read X-Newhedge-Resolution for what was actually served instead of assuming you received what you asked for.

X-Newhedge-Available-Resolutions lists, coarse to fine, exactly what the calling token may request for that metric, and any value it lists is served verbatim — so read it rather than probing each bucket. It is per-metric, not per-chart: two metrics on the same chart can offer different sets, because a metric only offers a bucket it actually ingests.

Finer pagination

Finer responses are paged newest-first. day1 responses ignore both parameters and are returned in full.

limit

Page size. Default 2500, maximum 5000.

before

Exclusive timestamp_ms cursor — returns observations strictly older than it.

Page backwards by sending the previous response's X-Newhedge-Next-Before as before, or by following the Link header. The Link URL omits api_token — re-attach your own token before requesting it.

Finer series are sparse. A bucket with no observation is absent rather than forward-filled, so consecutive points are not always evenly spaced.

Response headers

Timestamps are epoch milliseconds.

Every response

X-Newhedge-Resolution — resolution actually served.

X-Newhedge-Available-Resolutions — resolutions this token may request for this metric.

Finer responses

X-Newhedge-Limit — page size used.

X-Newhedge-Has-Moretrue when older observations remain.

X-Newhedge-From / X-Newhedge-To — oldest / newest timestamp in this page.

X-Newhedge-Available-From / X-Newhedge-Available-To — oldest / newest timestamp in the whole finer series.

When a next page exists

X-Newhedge-Next-Before — cursor for the next older page.

Link — RFC 8288 rel="next", without api_token.

What You Can Do

  • Query real-time and historical Bitcoin metrics
  • Access on-chain data, market indicators, and analytics
  • Access Bitcoin treasury company holdings, acquisitions, and profile data
  • Build custom dashboards and data visualizations
  • Integrate Newhedge data into custom algorithms and research tools
  • Monitor market trends and perform quantitative analysis
Base endpoint

GET /api/v2/metrics/:chart_slug/:metric_name

GET /api/v2/companies/:company_slug/:metric_name

Requires `api_token` query param
JSON responses mirror chart metric data
Status codes: 200, 401, 404
Step 1

Authenticate

Send your 24-character API token via the `api_token` query param. Requests without it return 401.

Step 2

Choose a dataset

Pick any chart or company from the sidebar. Each page exposes one or more metrics you can query individually.

Step 3

Call the endpoint

Hit the chart or company metric or news endpoint to receive the JSON used on the site.

Example request

Curl

GET
curl -X GET "https://newhedge.io/api/v2/metrics/bitcoin-dominance/btc_dominance?api_token=YOUR_TOKEN"

Swap `YOUR_TOKEN` with the secret from your account. Replace the chart and metric to target other datasets.

Sample response

Bitcoin Dominance (BTC.D)

JSON
[
  [
    1788825600000,
    58.64
  ],
  [
    1788912000000,
    58.52
  ],
  [
    1788998400000,
    57.83
  ]
]

Responses are either arrays of `[timestamp, value]` pairs or keyed hashes, depending on the metric.

API-ready datasets

These charts and companies expose metrics through the API. Select one on the left to view its metric list and sample responses.

2314 metrics available to use

On-Chain Analytics

Network activity, transaction volumes, address analytics, and blockchain health indicators.

Bitcoin Average Spent Output Lifespan (ASOL) View →
Capital Sentiment Phases View →
Bitcoin Coin Days Destroyed (CDD) View →
Coinflow Market Cap View →
Coinflow Price View →
Bitcoin Cointime Supply View →

Treasury Companies

Company profile, price, performance, treasury, holdings, and acquisition datasets.

iShares Bitcoin Trust View →
Strategy, Inc View →
United States View →
Grayscale Bitcoin Trust View →
Fidelity Wise Origin Bitcoin Fund View →
ARK 21Shares Bitcoin ETF View →

Market Intelligence

Exchange volumes, trading pairs, liquidity metrics, and market dominance indicators.

Bitcoin 200 Week Moving Average (200WMA) Heatmap View →
Bitcoin vs Altcoins Correlation View →
Bitcoin Correlations (GLD, IWM, QQQ, SPY, TLT) View →
Bitcoin Dominance (BTC.D) View →
Bitcoin Is Dead View →
Bitcoin MACD View →

Network Metrics

Network health, difficulty adjustments, hash rate, and network growth indicators.

Bitcoin Circulating Supply View →
Future Bitcoin Supply and Monetary Inflation View →
Bitcoin Total Node Distribution Map View →
Bitcoin Hashprice Index View →
Bitcoin Hashrate vs Price View →
Bitcoin Nodes by ASN View →

Mining Analytics

Mining profitability, hash rate distribution, miner revenue, and pool dominance.

Bitcoin Block Reward per Block View →
Bitcoin Block Reward per Day View →
Bitcoin Difficulty Adjustment Estimator View →
Bitcoin Difficulty Ribbon View →
Hash Ribbons View →
Bitcoin Miner Outflows View →

ETFs & Structured Products

Bitcoin ETF holdings, flows, premiums, discounts, and institutional product data.

Cumulative Spot Bitcoin ETF Volumes View →
ETF and Treasury Demand vs Issuance View →
Bitcoin Futures ETF Trading Volumes View →
Grayscale BTC Holdings View →
Spot Bitcoin ETF Daily AUM View →
Spot Bitcoin ETF Flows [USD] View →

Exchanges

Exchange trading volumes, liquidity metrics, exchange flows, and market share data.

Cryptocurrency Monthly Exchange Volume (BTC only) View →
Bitcoin Daily Trading Volume View →
Bitcoin Coinbase Premium Index View →
Bitcoin Exchange Balance Reserves (BTC) View →
Cryptocurrency Exchange Trading Volume - All Exchanges View →
Cryptocurrency Exchange Trading Volume (BTC Only) View →

Futures

Futures trading volumes, futures prices, and futures contracts.

Bitcoin 3 Month Annualized Basis View →
Bitcoin Cumulative Volume Delta (CVD) View →
Bitcoin Funding Rate (APR) View →
Bitcoin Futures Open Interest - All Exchanges View →
Bitcoin Liquidations View →
Bitcoin Total Aggregated Open Interest View →

Transactions

Transaction volumes, transaction fees, and transaction patterns.

Bitcoin Annualized Transaction Volume View →
Bitcoin Cumulative Transfer Volume (BTC) View →
Bitcoin Cumulative Transfer Volume (USD) View →
Bitcoin Monthly Transactions View →
Bitcoin Total Transactions Count View →
Bitcoin Transactions per Block View →