{"id":15435328,"url":"https://github.com/guotie/triangle-rs","last_synced_at":"2026-01-22T13:47:51.471Z","repository":{"id":147643037,"uuid":"418427750","full_name":"guotie/triangle-rs","owner":"guotie","description":"binance triangle arbitrage","archived":false,"fork":false,"pushed_at":"2021-10-19T13:03:50.000Z","size":24,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T20:02:18.416Z","etag":null,"topics":["arbitrage","binance","triangulation"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guotie.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":"2021-10-18T09:18:41.000Z","updated_at":"2025-01-16T18:36:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"30803ed6-59a6-4bef-8c02-1f9bb08b9210","html_url":"https://github.com/guotie/triangle-rs","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"fca7ad091abeafff994867f12b476bda3a5b959e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guotie/triangle-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guotie%2Ftriangle-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guotie%2Ftriangle-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guotie%2Ftriangle-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guotie%2Ftriangle-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guotie","download_url":"https://codeload.github.com/guotie/triangle-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guotie%2Ftriangle-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["arbitrage","binance","triangulation"],"created_at":"2024-10-01T18:43:37.042Z","updated_at":"2026-01-22T13:47:51.453Z","avatar_url":"https://github.com/guotie.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tri-angle Trader\n\ntri-angle trader without trade, just watch pair's price change, print arbtrage chance.\n\n\n# 中文\n\nbinance 三角套利交易，目前trade部分未开源。\n\n## 原理\n\n根据配置文件，计算出quote的套利交易对列表，然后，根据交易对列表，得到 `HashMap\u003cSymbol-Id, Vec\u003cTri-Angle-Pair\u003e\u003e`， 即交易对与该交易对相关的三角套利组合数组的map。\n\n\n开启监听binance ws接口，并初始化所有交易对的初始ticker数据。\n\n然后，监听交易对的价格变化，触发对上面map中该交易对对应的三角套利组合的计算，计算出可获利的交易对，打印获利比例， 交易数量等信息。\n\n如果你需要使用代理才能范围binance ws接口，则你需要使用全局vpn来运行，例如 `netch` 是个非常不错的选择。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguotie%2Ftriangle-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguotie%2Ftriangle-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguotie%2Ftriangle-rs/lists"}