{"id":27618006,"url":"https://github.com/bisonai/datamaxi-rust","last_synced_at":"2025-04-23T04:59:01.622Z","repository":{"id":258899798,"uuid":"847718927","full_name":"Bisonai/datamaxi-rust","owner":"Bisonai","description":"Official Rust SDK for DataMaxi+ API","archived":false,"fork":false,"pushed_at":"2025-03-08T04:50:20.000Z","size":1171,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T04:58:56.637Z","etag":null,"topics":["arbitrage","cex","cryptocurrency","data","dex","trading"],"latest_commit_sha":null,"homepage":"https://rust.datamaxiplus.com","language":"Rust","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/Bisonai.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,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T12:16:47.000Z","updated_at":"2024-10-29T02:09:09.000Z","dependencies_parsed_at":"2024-10-21T05:46:08.871Z","dependency_job_id":null,"html_url":"https://github.com/Bisonai/datamaxi-rust","commit_stats":null,"previous_names":["bisonai/datamaxi-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fdatamaxi-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fdatamaxi-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fdatamaxi-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fdatamaxi-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bisonai","download_url":"https://codeload.github.com/Bisonai/datamaxi-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372922,"owners_count":21419722,"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":["arbitrage","cex","cryptocurrency","data","dex","trading"],"created_at":"2025-04-23T04:59:01.018Z","updated_at":"2025-04-23T04:59:01.615Z","avatar_url":"https://github.com/Bisonai.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DataMaxi+ Rust SDK\n\nThis is the official implementation of Rust SDK for [DataMaxi+](https://datamaxiplus.com/).\nThe package can be used to fetch both historical and latest data using [DataMaxi+ API](https://docs.datamaxiplus.com/).\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Links](#links)\n- [Contributing](#contributing)\n- [License](#license)\n\n### Installation\n\n```shell\n[dependencies]\ndatamaxi = { git = \"https://github.com/bisonai/datamaxi-rust.git\" }\n```\n\n### Configuration\n\nPrivate API endpoints are protected by an API key.\nYou can get the API key upon registering at \u003chttps://datamaxiplus.com/auth\u003e.\n\n\n| Option     | Explanation                                                                   |\n|------------|-------------------------------------------------------------------------------|\n| `api_key`  | Your API key                                                                  |\n| `base_url` | If `base_url` is not provided, it defaults to `https://api.datamaxiplus.com`. |\n\n### Examples\n\n#### CEX Candle\n\n```rust\nlet api_key = \"my_api_key\".to_string();\nlet candle: datamaxi::cex::Candle = datamaxi::api::Datamaxi::new(api_key);\n\n// Fetch supported exchanges for CEX candle data\ncandle.exchanges(\"spot\");\n\n// Fetch supported symbols for CEX candle data\nlet symbols_options = datamaxi::cex::SymbolsOptions::new();\ncandle.symbols(\"binance\", symbols_options);\n\n// Fetch supported intervals for CEX candle data\ncandle.intervals();\n\n// Fetch CEX candle data\nlet candle_options = datamaxi::cex::CandleOptions::new();\ncandle.get(\"binance\", \"ETH-USDT\", candle_options);\n```\n\n#### DEX\n\n```rust\nlet api_key = \"my_api_key\".to_string();\nlet dex: datamaxi::dex::Dex = datamaxi::api::Datamaxi::new(api_key);\n\n// Fetch supported intervals for DEX candle data\ndex.intervals();\n\n// Fetch supported exchange for DEX data\ndex.exchanges();\n\n// Fetch supported chains for DEX data\ndex.chains();\n\n// Fetch supported pools for DEX data\nlet pools_options = datamaxi::dex::PoolsOptions::new();\ndex.pools(pools_options);\n\n// Fetch DEX candle data\nlet params = datamaxi::dex::CandleOptions::new();\ndex.candle(\n  \"bsc_mainnet\",\n  \"pancakeswap\",\n  \"0xb24cd29e32FaCDDf9e73831d5cD1FFcd1e535423\",\n  params,\n);\n\n// Fetch DEX trade data\nlet trade_options = datamaxi::dex::TradeOptions::new().limit(5);\ndex.trade(\n  \"bsc_mainnet\",\n  \"pancakeswap\",\n  \"0xb24cd29e32FaCDDf9e73831d5cD1FFcd1e535423\",\n  trade_options\n);\n```\n\n### Links\n\n- [Official Website](https://datamaxiplus.com/)\n- [Documentation](https://docs.datamaxiplus.com/)\n\n### Contributing\n\nWe welcome contributions!\nIf you discover a bug in this project, please feel free to open an issue to discuss the changes you would like to propose.\n\n### License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbisonai%2Fdatamaxi-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbisonai%2Fdatamaxi-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbisonai%2Fdatamaxi-rust/lists"}