From 48b7ccda35ac12e9ddc9f426b7b80ce211a74f67 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:45:28 -0700 Subject: [PATCH] fix(coins): drop totalVolumeUSD from /v1/coins response and spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The all-time volume stat was removed from the product; stop returning it from the /v1/coins (coin) response and remove it from the swagger coin schema. The underlying artist_coin_stats.total_volume_usd column is unchanged, so the existing "volume" sort still works (it orders by the joined column). Note: this is a breaking change to the public /v1/coins response. The generated SDK Coin model must be regenerated from the served swagger after this deploys. coin_insights still exposes the field (its handler uses SELECT * and the column is still written by the Birdeye CoinStatsJob) — left for a separate change. Co-Authored-By: Claude Opus 4.8 --- api/swagger/swagger-v1.yaml | 3 --- api/v1_coins.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/api/swagger/swagger-v1.yaml b/api/swagger/swagger-v1.yaml index c8d11d1b..a324f0c6 100644 --- a/api/swagger/swagger-v1.yaml +++ b/api/swagger/swagger-v1.yaml @@ -11829,9 +11829,6 @@ components: marketCap: type: number description: Market capitalization in USD - totalVolumeUSD: - type: number - description: Total volume traded in USD (all time) holder: type: integer description: Number of holders diff --git a/api/v1_coins.go b/api/v1_coins.go index 9876d951..963057df 100644 --- a/api/v1_coins.go +++ b/api/v1_coins.go @@ -67,7 +67,6 @@ type ArtistCoin struct { VSell24hChangePercent float64 `json:"vSell24hChangePercent" db:"v_sell_24h_change_percent"` NumberMarkets int `json:"numberMarkets" db:"number_markets"` TotalVolume float64 `json:"totalVolume" db:"total_volume"` - TotalVolumeUSD float64 `json:"totalVolumeUSD" db:"total_volume_usd"` VolumeBuyUSD float64 `json:"volumeBuyUSD" db:"volume_buy_usd"` VolumeSellUSD float64 `json:"volumeSellUSD" db:"volume_sell_usd"` VolumeBuy float64 `json:"volumeBuy" db:"volume_buy"` @@ -162,7 +161,6 @@ const sharedSelectCoinSql = ` COALESCE(artist_coin_stats.v_sell_24h_change_percent, 0) as v_sell_24h_change_percent, COALESCE(artist_coin_stats.number_markets, 0) as number_markets, COALESCE(artist_coin_stats.total_volume, 0) as total_volume, - COALESCE(artist_coin_stats.total_volume_usd, 0) as total_volume_usd, COALESCE(artist_coin_stats.volume_buy, 0) as volume_buy, COALESCE(artist_coin_stats.volume_buy_usd, 0) as volume_buy_usd, COALESCE(artist_coin_stats.volume_sell, 0) as volume_sell,