Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(market): keep the holder count when Birdeye's quota is spent

nirholasa4525ced8d3b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 059ebbf75..45949c019 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,6 +36,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **The premium vanity address shelf restocks itself without redoing work it already finished**: Premium vanity addresses (the long, brandable Solana addresses sold from stock) are ground ahead of time on cheap batch machines. Those machines get one hour before the platform stops them, and until now a batch that needed longer was cut off mid-run and reported as a failure, then started over from zero on the retry, re-grinding addresses that were already on the shelf. The grinder now stops itself cleanly a few minutes early, keeps everything it found, and on its next run reads the shelf first and skips every pattern still in stock. Wide multi-machine runs also now split the work properly instead of every machine grinding the same slice. (`/vanity/premium`) `[fix, infra]`
- **The pump.fun MCP server now returns the real name and symbol for tokens launched today**: Ask the pump.fun MCP server for a token's details and it reported no name, no symbol, and no image link for essentially every coin launched recently, including $THREE. The reason: pump.fun now mints Token-2022 tokens, which carry their name and symbol inside the mint itself rather than in the separate metadata account the server was reading. It now reads both places, so a request for a current token returns its actual name, symbol, and metadata link alongside supply and decimals. Older tokens are unaffected. (`/docs/mcp`) `[fix]`
- **The sign-language recognition API now documents the confidence score it returns with every transcription**: When you fingerspell into the webcam, the recognizer reports how sure it is of what it read, and the page uses that to flag a shaky capture instead of quietly dropping wrong words into your message. That score was in every response but appeared in none of the docs, so anyone building on the recognition API had no way to know it existed. The API reference, the sign-language guide and the worker's own README now list the full response, including the raw decode before the cleanup pass and whether the cleanup changed anything, so a caller can build the same warning we do. The recognizer itself was also capped to a sane number of simultaneous captures per instance, so a burst of signers scales out instead of queueing behind each other. (`/sign-language`) `[docs, improvement]`
+- **Token pages keep their holder count when a data provider runs out of quota**: Prices, liquidity and holder counts on Solana token panels come from an ordered list of data providers, so one going down never blanks the page. Until now the first provider was the only one that reported a holder count, and it carries a monthly usage cap: once that cap was hit, the next six hours of readings fell to a provider that has no holder data and the number quietly disappeared from the page. The Solana Foundation's Tokens API is now the second provider in that list and reports the full set, holder count and circulating supply included, so a spent quota no longer costs the page a field. It also groups mints that represent the same asset, which is what lets a balance be read across every version of a token instead of one address at a time. `[improvement, infra]`
- **Turning a sketch into 3D no longer loses a finished model when the job and the progress check land on different machines**: Sketch to 3D runs on our own GPU service, which can run on more than one machine at a time. The machine that accepted your drawing remembered the job only in its own memory, so a progress check that reached a second machine was answered with "no such job" and the generation was marked failed, sometimes after the model had already been built. The same thing happened when a machine was recycled between the submit and the result. Every job now records its progress to durable storage the moment it is accepted, so any machine can answer for it, and a job whose machine really did disappear mid-run is reported as failed with a clear reason after thirty minutes instead of leaving you polling forever. Two related repairs ride along: when the model fails to load on a machine, jobs sent to it now fail immediately with the real reason instead of waiting out a ten-minute timeout, and the service's health check reports that machine as unhealthy instead of claiming it is fine. (`/forge`) `[fix, infra]`
- **Watching an agent forge an avatar now names the engine and the wait**: When an operator casts a live avatar forge onto an agent's screen, the narration used to open with the same line twice and then say only "Queued", never naming which free engine took the job or why a slow start was slow. It now names the engine that actually ran (which is not always the one requested, since the platform routes to whichever free lane is healthy) and, when a GPU worker has to boot from zero, says so with the real spin-up estimate instead of looking stalled. Failures now show their own recovery step rather than blanket prompt advice, and the High tier, which needs a $THREE hold, is refused up front instead of failing mid-cast. `[improvement, fix]`
diff --git a/api/_lib/market/token-market.js b/api/_lib/market/token-market.js
index 927c26789..5f97f6422 100644
--- a/api/_lib/market/token-market.js
+++ b/api/_lib/market/token-market.js
@@ -208,21 +208,23 @@ async function fromTokensXyz(mint) {
if (!tokensXyzConfigured()) return null;
const row = await fetchMintMarket(mint);
const m = row?.market;
- if (!m || !(num(m.price_usd) > 0)) return null;
- const price = num(m.price_usd);
- const marketCap = num(m.market_cap);
+ // Fields arrive already normalized to number-or-null by the client, so they
+ // are NOT re-wrapped in the local num() here: Number(null) is 0, and that
+ // would turn every unknown field (holders, liquidity) into a false zero.
+ if (!m || !(m.price_usd > 0)) return null;
+ const { price_usd: price, market_cap: marketCap } = m;
return shape(
{
price_usd: price,
- price_change_24h: num(m.price_change_24h),
+ price_change_24h: m.price_change_24h,
market_cap: marketCap,
- volume_24h: num(m.volume_24h),
- liquidity: num(m.liquidity),
- holders: num(m.holders),
+ volume_24h: m.volume_24h,
+ liquidity: m.liquidity,
+ holders: m.holders,
// Prefer the reported circulating supply; fall back to cap / price the
// way the DexScreener rung does when the row omits it.
- supply: num(m.supply) ?? (marketCap && price ? marketCap / price : null),
- decimals: num(m.decimals) ?? 6,
+ supply: m.supply ?? (marketCap && price ? marketCap / price : null),
+ decimals: m.decimals ?? 6,
},
'tokensxyz',
);
diff --git a/data/changelog.json b/data/changelog.json
index 31c05f07f..6b6b162a5 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-11",
+ "title": "Token pages keep their holder count when a data provider runs out of quota",
+ "summary": "Prices, liquidity and holder counts on Solana token panels come from an ordered list of data providers, so one going down never blanks the page. Until now the first provider was the only one that reported a holder count, and it carries a monthly usage cap: once that cap was hit, the next six hours of readings fell to a provider that has no holder data and the number quietly disappeared from the page. The Solana Foundation's Tokens API is now the second provider in that list and reports the full set, holder count and circulating supply included, so a spent quota no longer costs the page a field. It also groups mints that represent the same asset, which is what lets a balance be read across every version of a token instead of one address at a time.",
+ "tags": [
+ "improvement",
+ "infra"
+ ]
+ },
{
"date": "2026-08-11",
"title": "Deleting a copy of an avatar no longer blanks the original",
diff --git a/docs/tokens-xyz.md b/docs/tokens-xyz.md
index e97ea4884..0fd015165 100644
--- a/docs/tokens-xyz.md
+++ b/docs/tokens-xyz.md
@@ -54,12 +54,17 @@ Cached for 6 hours: a mint-to-asset mapping changes when the upstream registry d
### List every variant of an asset
```js
-const variants = await fetchAssetVariants(asset.asset_id, { sortBy: 'liquidity' });
-for (const v of variants) {
- console.log(v.label, v.mint, v.market?.price_usd, v.market?.liquidity, v.execution?.score);
-}
+const variants = await fetchAssetVariants('usd', { sortBy: 'liquidity' });
+const aggregate = variants.reduce((sum, v) => sum + (v.market?.liquidity ?? 0), 0);
+console.log(`USD spans ${variants.length} Solana mints, $${Math.round(aggregate).toLocaleString()} pooled`);
+// USD spans 27 Solana mints, $955,077,128 pooled
+// USDC EPjFWdd5Au… liq $623,873,106 holders 7,917,665
+// USDT Es9vMFrzaC… liq $119,596,584 holders 2,894,605
+// PYUSD 2b1kV6DkPA… liq $54,750,632 holders 55,354
```
+That aggregate is the number no mint-scoped source can produce.
+
`sortBy` accepts `liquidity` (default), `execution_quality`, or `stock_redeemability`. Optional filters: `kind`, `liquidityTier`, `stockVariantTier`.
Each row carries:
@@ -68,7 +73,7 @@ Each row carries:
| --- | --- |
| `mint`, `chain`, `kind`, `label` | Variant identity (`native`, `wrapped`, `bridged`, `lst`, `tokenized_equity`, …) |
| `liquidity_tier`, `trust_tier` | Upstream's depth and trust banding, `tier1` strongest |
-| `market` | Price, liquidity, volume, cap, change, decimals, logo, and which upstream produced them |
+| `market` | Price, liquidity, volume, cap, FDV, change, decimals, logo, holders, supply, and which upstream produced them |
| `execution` | Cached 24h fill quality (score, bot-volume ratio, fee bps, flow sources), or `null` where uncovered |
| `stock_variant_tier` | Redeemability for tokenized equities. Provider metadata for routing and display, never advice |
@@ -105,14 +110,29 @@ Trending ranks individual mints by short-window momentum from direct USD-stable
[api/\_lib/market/token-market.js](../api/_lib/market/token-market.js) reads a mint through an ordered chain, each rung normalized to one shape:
-1. **Birdeye** (keyed) - richest, the only rung carrying a holder count
-2. **Tokens API** (keyed) - price, liquidity, volume, cap, and direct on-chain trade metrics
-3. **DexScreener** (keyless)
-4. **GeckoTerminal** (keyless)
+1. **Birdeye** (keyed) - our direct read, full field set
+2. **Tokens API** (keyed) - the same full field set, holder count and circulating supply included
+3. **DexScreener** (keyless) - no holder count
+4. **GeckoTerminal** (keyless) - no holder count
5. **DefiLlama coins** (keyless, price only)
6. **Raydium** (keyless, price only)
-Tokens API sits second because it carries no holder count (so it cannot displace Birdeye) but its numbers can come from real fills rather than a pool estimate (so it belongs ahead of the keyless aggregators). It reports `source: 'tokensxyz'` and derives `supply` from cap over price, the same way the DexScreener rung does.
+Tokens API sits second, and the position matters more than it looks. Birdeye's monthly compute-unit quota is the one this platform actually exhausts, and the cascade benches a quota-dead source for six hours. Before this rung, that bench dropped every read to DexScreener, which has no holder count, so the token panel lost a field for the rest of the window. Tokens API carries holders and circulating supply, so the fallback is now like-for-like instead of degraded.
+
+This is not hypothetical. Verified live on 2026-08-11 with the Birdeye key already quota-benched:
+
+```
+wSOL source: tokensxyz price: 76.10 holders: 7,709,344 liq: $4,531,185,262
+USDC source: tokensxyz price: 0.9998 holders: 7,917,665 liq: $623,873,106
+$THREE source: dexscreener price: 0.001547 holders: null liq: $216,882
+```
+
+$THREE falls through on purpose: it resolves to a `solana-<mint>` singleton with no cached market, so the rung returns null and the cascade continues. Coverage is curated, and a token the registry has not indexed is reported as absent rather than guessed at.
+
+Two mapping details are load-bearing:
+
+- `holder`, `circulatingSupply`, `totalSupply` and `fdv` are **absent from the published v1 type but present on live birdeye-sourced rows**. They are mapped when present and left null otherwise, so a `clickhouse_trades` row that omits them degrades honestly instead of reporting zero holders.
+- Values reaching the rung are already normalized to number-or-null by the client and are deliberately **not** re-wrapped in the cascade's local `num()`. `Number(null)` is `0`, which would render an unknown liquidity as `$0`.
Two behaviors are load-bearing and covered by tests:
diff --git a/public/changelog.json b/public/changelog.json
index 7b85f931f..db38f38ea 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-11T04:38:04.298Z",
+ "generated_at": "2026-08-11T04:44:05.095Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -322,6 +322,17 @@
"improvement"
]
},
+ {
+ "date": "2026-08-11",
+ "type": "update",
+ "title": "Token pages keep their holder count when a data provider runs out of quota",
+ "summary": "Prices, liquidity and holder counts on Solana token panels come from an ordered list of data providers, so one going down never blanks the page. Until now the first provider was the only one that reported a holder count, and it carries a monthly usage cap: once that cap was hit, the next six hours of readings fell to a provider that has no holder data and the number quietly disappeared from the page. The Solana Foundation's Tokens API is now the second provider in that list and reports the full set, holder count and circulating supply included, so a spent quota no longer costs the page a field. It also groups mints that represent the same asset, which is what lets a balance be read across every version of a token instead of one address at a time.",
+ "link": null,
+ "tags": [
+ "improvement",
+ "infra"
+ ]
+ },
{
"date": "2026-08-11",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 29e44f043..ebb89f0d1 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -246,6 +246,14 @@
<category>docs</category>
<description>When you fingerspell into the webcam, the recognizer reports how sure it is of what it read, and the page uses that to flag a shaky capture instead of quietly dropping wrong words into your message. That score was in every response but appeared in none of the docs, so anyone building on the recognition API had no way to know it existed. The API reference, the sign-language guide and the worker's own README now list the full response, including the raw decode before the cleanup pass and whether the cleanup changed anything, so a caller can build the same warning we do. The recognizer itself was also capped to a sane number of simultaneous captures per instance, so a burst of signers scales out instead of queueing behind each other.</description>
</item>
+ <item>
+ <title>Token pages keep their holder count when a data provider runs out of quota</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-08-11:Token pages keep their holder count when a data provider runs out of quota</guid>
+ <pubDate>Tue, 11 Aug 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Prices, liquidity and holder counts on Solana token panels come from an ordered list of data providers, so one going down never blanks the page. Until now the first provider was the only one that reported a holder count, and it carries a monthly usage cap: once that cap was hit, the next six hours of readings fell to a provider that has no holder data and the number quietly disappeared from the page. The Solana Foundation's Tokens API is now the second provider in that list and reports the full set, holder count and circulating supply included, so a spent quota no longer costs the page a field. It also groups mints that represent the same asset, which is what lets a balance be read across every version of a token instead of one address at a time.</description>
+ </item>
<item>
<title>Turning a sketch into 3D no longer loses a finished model when the job and the progress check land on different machines</title>
<link>https://three.ws/forge</link>
diff --git a/public/features.json b/public/features.json
index 44778b0cd..efddcd094 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-11T04:38:04.290Z",
+ "generated_at": "2026-08-11T04:44:05.083Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",