CoinGecko's API docs show a Bitcoin price of $77,671 and a fully diluted valuation (FDV) of about $1.556 trillion. The same response lists a maximum supply of 21 million BTC.
Multiply those two numbers and you get $1.631 trillion. Where did the extra $75 billion come from?
The docs give us another field to check. The example response is dated May 18, 2026 and lists a total supply of 20,030,843 BTC. Here's what happens when you use each supply figure with the displayed price. CoinGecko's /coins/markets response example
| Calculation | Value |
|---|---|
| FDV returned by the API | $1,555,914,058,873 |
| Displayed price × total supply | $1,555,815,606,653 |
| Displayed price × maximum supply | $1,631,091,000,000 |
The reported value is much closer to the calculation using total supply. There's still a gap of about $98 million, so this response alone can't tell us exactly how that field was computed. It does show how much the choice of supply field matters, even when the displayed price stays the same.
What I'd put in the tooltip
CoinMarketCap defines FDV as price multiplied by maximum supply. CoinGecko's note introducing its outstanding token value metric describes FDV using total supply, while a separate CoinGecko guide to tokenomics explains it using maximum supply. I'd treat the basis as part of the metric's definition and check it for the feed I'm using. CoinMarketCap supply definitions · CoinGecko's methodology note · CoinGecko's tokenomics guide
If the app computes the value, the tooltip can say "Price × total supply in this snapshot." If the app displays a figure supplied by the feed and the calculation is unclear, the tooltip can say "Reported by CoinGecko. Supply basis unconfirmed." I'd store the original value and its source so the wording stays accurate when someone opens the chart six months later.
This matters for ratios, too. When the prices match, market cap divided by FDV reduces to circulating supply divided by whatever supply figure was used for FDV. A label like "25% of total supply in circulation" tells the reader what the percentage measures. If the denominator changes to maximum supply, that label needs to change with it.
A token unlock can move market cap while FDV stays flat
Say a token trades at $0.80. It has 50 million tokens in circulation, 200 million already issued and a maximum supply of 500 million. Its circulating market cap is $40 million.
Now 10 million already issued tokens unlock. If the tracker starts counting all of them as circulating and the price holds at $0.80, market cap rises to $48 million. Total and maximum supply stay the same, so the two FDV calculations still give $160 million and $400 million.
The words "if the tracker starts counting them" matter. A release schedule tells you when a restriction is due to end. Tokens can become transferable and stay in foundation wallets that a tracker excludes from circulation. Keep the unlock date on the chart if it helps explain what happened. Use the observed supply figure to calculate market cap. ChangeNOW's FDV explainer and guide to reading unlock schedules · CoinGecko's circulating supply methodology
Give the chart a place to break
Suppose your dashboard has been plotting the $160 million total-supply FDV and your replacement feed shows the $400 million maximum-supply FDV. Join those points and a percentage badge can show a 150% increase. In this example, the price and both supply figures stayed put. The calculation changed.
I'd give each observation a definitionId that identifies the source, the supply basis and the version of the calculation. In the chart below, every change in that ID starts a separate line segment. A missing value breaks the line too. The input is one asset in one currency, ordered by time.
function splitValuationSeries(points) { const series = []; let segment; for (const point of points) { if (point.fdv === null) { segment = undefined; continue; } if (!segment || segment.definitionId !== point.definitionId) { segment = { definitionId: point.definitionId, points: [] }; series.push(segment); } segment.points.push(point); } return series; } Here's the regression case I'd keep. The feed changes on day 3. Day 5 is missing, so day 6 starts a new segment even though the definition is unchanged.
const assert = require("node:assert/strict"); const points = [ { day: 1, fdv: 156_000_000, definitionId: "feed-a:total:v1" }, { day: 2, fdv: 160_000_000, definitionId: "feed-a:total:v1" }, { day: 3, fdv: 400_000_000, definitionId: "feed-b:max:v1" }, { day: 4, fdv: 420_000_000, definitionId: "feed-b:max:v1" }, { day: 5, fdv: null, definitionId: "feed-b:max:v1" }, { day: 6, fdv: 410_000_000, definitionId: "feed-b:max:v1" }, ]; const segments = splitValuationSeries(points); assert.deepEqual( segments.map(({ points }) => points.map(({ day }) => day)), [[1, 2], [3, 4], [6]] ); Render each segment separately and show a dot for a segment with one point. On day 3, put "FDV calculation changed from total supply to maximum supply" next to the new line. Use the same boundary for the percentage badge. Leave it blank on day 3 and let it show +5% from day 3 to day 4, when both numbers have the same definition.
