https://github.com/guotie/triangle-rs
binance triangle arbitrage
https://github.com/guotie/triangle-rs
arbitrage binance triangulation
Last synced: 5 months ago
JSON representation
binance triangle arbitrage
- Host: GitHub
- URL: https://github.com/guotie/triangle-rs
- Owner: guotie
- License: gpl-3.0
- Created: 2021-10-18T09:18:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-19T13:03:50.000Z (over 4 years ago)
- Last Synced: 2025-04-19T20:02:18.416Z (about 1 year ago)
- Topics: arbitrage, binance, triangulation
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tri-angle Trader
tri-angle trader without trade, just watch pair's price change, print arbtrage chance.
# 中文
binance 三角套利交易,目前trade部分未开源。
## 原理
根据配置文件,计算出quote的套利交易对列表,然后,根据交易对列表,得到 `HashMap>`, 即交易对与该交易对相关的三角套利组合数组的map。
开启监听binance ws接口,并初始化所有交易对的初始ticker数据。
然后,监听交易对的价格变化,触发对上面map中该交易对对应的三角套利组合的计算,计算出可获利的交易对,打印获利比例, 交易数量等信息。
如果你需要使用代理才能范围binance ws接口,则你需要使用全局vpn来运行,例如 `netch` 是个非常不错的选择。