{"id":28561285,"url":"https://github.com/duneanalytics/dex-metrics","last_synced_at":"2025-08-23T23:21:15.176Z","repository":{"id":218759719,"uuid":"747290412","full_name":"duneanalytics/dex-metrics","owner":"duneanalytics","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-13T21:03:00.000Z","size":29,"stargazers_count":6,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-09T15:21:49.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duneanalytics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-23T16:36:01.000Z","updated_at":"2024-05-09T06:33:36.000Z","dependencies_parsed_at":"2024-02-04T04:24:20.942Z","dependency_job_id":"4e21772f-574d-4a9d-826b-b2c921a89afc","html_url":"https://github.com/duneanalytics/dex-metrics","commit_stats":null,"previous_names":["duneanalytics/dex-metrics"],"tags_count":0,"template":false,"template_full_name":"duneanalytics/DuneQueryRepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duneanalytics%2Fdex-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duneanalytics%2Fdex-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duneanalytics%2Fdex-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duneanalytics%2Fdex-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duneanalytics","download_url":"https://codeload.github.com/duneanalytics/dex-metrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duneanalytics%2Fdex-metrics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259058206,"owners_count":22799318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T10:41:53.105Z","updated_at":"2025-06-10T10:42:16.693Z","avatar_url":"https://github.com/duneanalytics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dex Metrics Repo\n\nThis repo is for managing queries and discussions around the [Dune DEX Metrics](https://dune.com/hagaetc/dex-metrics) dashboard.\n\n\u003e*This repo was created [using this template](https://github.com/duneanalytics/DuneQueryRepo), made to [manage your Dune queries](https://dune.mintlify.app/api-reference/crud/endpoint/create) and any [CSVs as Dune tables](https://dune.mintlify.app/api-reference/upload/endpoint/upload).*\n\n### For Contributors\n\nI've set up four types of issues right now:\n- `bugs`: This is for data quality issues like miscalculations or broken queries.\n- `chart improvements`: This is for suggesting improvements to the visualizations.\n- `query improvements`: This is for suggesting improvements to the query itself, such as adding an extra column or table that enhances the results.\n- `generic questions`: This is a catch all for other questions or suggestions you may have about the dashboard.\n\nIf you want to contribute, either start an issue or go directly into making a PR (using the same labels as above). Once the PR is merged, the queries will get updated in the frontend.\n\n### Query Management Scripts\n\nYou'll need python and pip installed to run the script commands. If you don't have a package manager set up, then use either [conda](https://www.anaconda.com/download) or [poetry](https://python-poetry.org/) . Then install the required packages:\n\n```\npip install -r requirements.txt\n```\n\n| Script | Action                                                                                                                                                    | Command |\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `pull_from_dune.py` | updates/adds queries to your repo based on ids in `queries.yml`                                                                                           | `python scripts/pull_from_dune.py` |\n| `push_to_dune.py` | updates queries to Dune based on files in your `/queries` folder                                                                                          | `python scripts/push_to_dune.py` |\n| `preview_query.py` | gives you the first 20 rows of results by running a query from your `/queries` folder. Specify the id. This uses Dune API credits | `python scripts/preview_query.py 2615782` |\n| `upload_to_dune.py` | uploads/updates any tables from your `/uploads` folder. Must be in CSV format, and under 200MB. | `python scripts/upload_to_dune.py` |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduneanalytics%2Fdex-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduneanalytics%2Fdex-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduneanalytics%2Fdex-metrics/lists"}