Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create the list of top traded tokens for base #756

Merged
merged 4 commits into from
Dec 2, 2024
Merged

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.

2 participants