{"id":18238263,"url":"https://github.com/udayj/dex-aggregator","last_synced_at":"2025-10-07T01:56:19.572Z","repository":{"id":261087621,"uuid":"879884884","full_name":"udayj/dex-aggregator","owner":"udayj","description":"Lightweight Dex Aggregator for Jediswap v1 pools","archived":false,"fork":false,"pushed_at":"2024-12-13T16:20:10.000Z","size":653,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T16:11:13.260Z","etag":null,"topics":["rust","rust-lang","starknet","starknet-ecosystem"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/udayj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2024-10-28T18:05:13.000Z","updated_at":"2024-12-13T16:20:14.000Z","dependencies_parsed_at":"2024-11-04T16:44:16.585Z","dependency_job_id":"a50ab73e-6ae7-403b-a96e-386398f8649c","html_url":"https://github.com/udayj/dex-aggregator","commit_stats":null,"previous_names":["udayj/dex-aggregator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/udayj/dex-aggregator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udayj%2Fdex-aggregator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udayj%2Fdex-aggregator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udayj%2Fdex-aggregator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udayj%2Fdex-aggregator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udayj","download_url":"https://codeload.github.com/udayj/dex-aggregator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udayj%2Fdex-aggregator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708025,"owners_count":26031932,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["rust","rust-lang","starknet","starknet-ecosystem"],"created_at":"2024-11-05T03:04:45.552Z","updated_at":"2025-10-07T01:56:19.550Z","avatar_url":"https://github.com/udayj.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dex Aggregator for Jediswap v1 pools\n\nThis is a lightweight dex aggregator. It exposes a simple REST based API service to get trade quotes for a token pair and manage the underlying datastore.\n\nTo compile `cargo build --release` (using rust version 1.80.0)\n\nTo run `cargo run --release` - dex_config.toml holds configurable values\n\nServer will be available at http://localhost:3000\n\nSample query to get [trade quotes](http://localhost:3000/quotes?sellTokenAddress=0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8\u0026buyTokenAddress=0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d\u0026sellAmount=10000000000\u0026getLatest=true) - \nThe `getLatest` query parameter lets you use pre indexed data (if false or not present) and get latest reserves data (if true)\n\nOpen Api Docs available at http://localhost:3000/api-docs/openapi.json\n\nSwagger UI available at http://localhost:3000/swagger-ui/\n\nThe basic idea is to find all possible paths to trade between a token pair and then do gradient optimisation to optimise an objective function - maximise output when given an input amount and minimise input when given an output amount. Ref [here](https://github.com/udayj/dex-aggregator/tree/main/notes) for some math notes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudayj%2Fdex-aggregator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudayj%2Fdex-aggregator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudayj%2Fdex-aggregator/lists"}