diff --git a/api/v1_coins_volume_leaders.go b/api/v1_coins_volume_leaders.go index 4969cddc..894681c5 100644 --- a/api/v1_coins_volume_leaders.go +++ b/api/v1_coins_volume_leaders.go @@ -128,6 +128,7 @@ func (app *ApiServer) v1CoinsVolumeLeaders(c *fiber.Ctx) error { l.address IS NOT NULL AND NOT EXISTS (SELECT 1 FROM excluded_addresses WHERE excluded_addresses.address = l.address) AND l.volume > 0 + ORDER BY l.volume DESC LIMIT @limit OFFSET @offset;`