{"id":26885643,"url":"https://github.com/osslabz/mexc-client","last_synced_at":"2025-03-31T18:53:10.064Z","repository":{"id":246195266,"uuid":"819409153","full_name":"osslabz/mexc-client","owner":"osslabz","description":"A websocket client for the MEXC API","archived":false,"fork":false,"pushed_at":"2024-10-29T13:08:43.000Z","size":178,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2024-10-29T15:56:55.323Z","etag":null,"topics":["crypto","cryptocurrencies","cryptocurrency","exchange","mexc","mexc-api","mexc-client","mexc-java-client","mexc-websocket-client","websocket","websocket-client"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osslabz.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-06-24T12:52:57.000Z","updated_at":"2024-10-29T13:08:39.000Z","dependencies_parsed_at":"2024-06-26T12:31:11.204Z","dependency_job_id":"70d38c4b-5c21-4e5c-868b-0ff4ee12a620","html_url":"https://github.com/osslabz/mexc-client","commit_stats":null,"previous_names":["osslabz/mexc-client"],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osslabz%2Fmexc-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osslabz%2Fmexc-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osslabz%2Fmexc-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osslabz%2Fmexc-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osslabz","download_url":"https://codeload.github.com/osslabz/mexc-client/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523879,"owners_count":20791444,"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":["crypto","cryptocurrencies","cryptocurrency","exchange","mexc","mexc-api","mexc-client","mexc-java-client","mexc-websocket-client","websocket","websocket-client"],"created_at":"2025-03-31T18:53:09.596Z","updated_at":"2025-03-31T18:53:10.047Z","avatar_url":"https://github.com/osslabz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mexc-Client\n============\n![GitHub](https://img.shields.io/github/license/osslabz/mexc-client)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/osslabz/mexc-client/build-on-push.yml?branch=dev\u0026label=build\u0026logo=git)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/osslabz/mexc-client/build-release-on-main-push.yml?branch=main\u0026label=perform-release\u0026logo=semanticrelease)\n[![Maven Central](https://img.shields.io/maven-central/v/net.osslabz/mexc-client?label=Maven%20Central)](https://search.maven.org/artifact/net.osslabz/mexc-client)\n\nConnects to [MEXC's Websocket API](https://www.mexc.com/mexc-api) and allows to subscribe to various data channels.\n\n\nFeatures:\n---------\n- OHLC streaming for all supported intervals\n- Robust connection lost detection with automatic re-connect and resubscribe to previously subscribed topics\n\n\n\nQuickStart\n---------\n\nMaven\n------\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.osslabz\u003c/groupId\u003e\n    \u003cartifactId\u003emexc-client\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n------\n\n```java\n\nMexcClient client = new MexcClient();\nclient.subscribe(new CurrencyPair(\"BTC\", \"USDT\"), Interval.PT1M, ohlc -\u003e {\n    log.debug(\"{}\", ohlc);\n});\n\n\nclient.unsubscribe(new CurrencyPair(\"BTC\", \"USDT\"), Interval.PT1M);\nclient.close();\n```        \n\nLogging\n------\nThis project uses slf4j-api but doesn't package an implementation. This is up to the using application. For the\ntests logback is backing slf4j as implementation, with a default configuration logging to STOUT.\n\n\nCompatibility\n------\nmexc-client targets Java 17.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosslabz%2Fmexc-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosslabz%2Fmexc-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosslabz%2Fmexc-client/lists"}