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.

feat(market): map holders, supply and FDV from live Tokens API rows

nirholas0866a7f4d72f
diff --git a/api/_lib/tokens-xyz.js b/api/_lib/tokens-xyz.js
index 896c0bcf6..2ffdb938a 100644
--- a/api/_lib/tokens-xyz.js
+++ b/api/_lib/tokens-xyz.js
@@ -139,7 +139,16 @@ export function normalizeVariantMarket(m) {
price_change_1h: num(m.priceChange1hPercent),
price_change_24h: num(m.priceChange24hPercent),
market_cap: num(m.marketCap),
+ fdv: num(m.fdv),
liquidity: num(m.liquidity),
+ // Holder count and supply are absent from the published v1 type but are
+ // present live on birdeye-sourced rows (verified 2026-08-11 against
+ // wSOL and the 27 USD variants). Mapped when present, null otherwise,
+ // so a clickhouse_trades row that omits them degrades honestly instead
+ // of reporting zero holders.
+ holders: num(m.holder),
+ supply: num(m.circulatingSupply),
+ total_supply: num(m.totalSupply),
volume_1h: num(m.volume1hUSD),
volume_24h: num(m.volume24hUSD),
volume_30d: num(m.volume30dUSD),