Bitcoin Cost Basis Average (BTC-Weighted)
BTC-weighted cost basis averages for supply in profit, aggregate, and in loss
Request format
curl -X GET "https://newhedge.io/api/v2/metrics/cost-basis-average-btc/METRIC_NAME?api_token=YOUR_TOKEN"
api_token (required) — 24 character token.
resolution (optional) — day1 (default), hour12, hour4, hour1, 30mn, 10mn. Finer buckets are served to Advanced and Enterprise accounts; see Resolutions.
before (optional) — exclusive cursor, returns observations older than this timestamp_ms. Finer resolutions only.
limit (optional) — page size for finer resolutions. Default 2500, maximum 5000. Ignored for day1.
:metric_name — one of the metric names listed below.
200 with JSON payload, 401 for missing/invalid token, 404 for missing resources.
Metrics
Each metric is fetched independently. Responses are trimmed samples to show structure.
Cost Basis In Profit Per Coin
Data used by the Bitcoin Cost Basis Average (BTC-Weighted) chart.
https://newhedge.io/api/v2/metrics/cost-basis-average-btc/cost_basis_in_profit_per_coin?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your API token.
[
[
1786752000000,
20345.26
],
[
1786838400000,
18784.45
],
[
1786924800000,
24790.87
]
]
Realized Price
Data used by the Bitcoin Cost Basis Average (BTC-Weighted) chart.
https://newhedge.io/api/v2/metrics/cost-basis-average-btc/realized_price?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your API token.
[
[
1786752000000,
52698.6003534542
],
[
1786838400000,
52684.87876216511
],
[
1786924800000,
52681.67002761329
]
]
Cost Basis In Loss Per Coin
Data used by the Bitcoin Cost Basis Average (BTC-Weighted) chart.
https://newhedge.io/api/v2/metrics/cost-basis-average-btc/cost_basis_in_loss_per_coin?api_token=YOUR_TOKEN
Replace `YOUR_TOKEN` with your API token.
[
[
1786752000000,
86871.39
],
[
1786838400000,
85971.25
],
[
1786924800000,
89954.08
]
]