Skip to content

Conversation

@anxolin
Copy link
Contributor

@anxolin anxolin commented Nov 29, 2024

This PR creartes a script that

  1. Reads all the tokens from coingecko in base from https://tokens.coingecko.com/base/all.json (way too many!)
  2. Gets the USD volume for the last 24h
  3. Sort tokens by USD
  4. Create a new list with the top 500
Screenshot at Nov 29 16-16-53

Generates this file:
https://github.com/cowprotocol/token-lists/blob/c8b2df6120d7bb4ae1943a45ee2bbadf60a4e823/src/public/CoinGecko-base.json

Test

Run:

COINGECKO_API_KEY="coingecko-key" yarn baseChainTopTokens

check the generated file makes sense

Try to the list to CoW Swap:

you should see the list with the top 500 tokens:

image image

@anxolin anxolin requested a review from shoom3301 December 2, 2024 10:45
@anxolin anxolin merged commit c8db42c into main Dec 2, 2024
5 checks passed
@anxolin anxolin deleted the top-base-tokens branch December 2, 2024 18:17
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants