A short script for finding triangle arbitrage opportunities in Binance , which is heavily inspired from this gist.
You can set the primary coins by modifying primary.txt. It should look something like:
XRP
OMG
BTC
BNB
USDT
ETH
After adjusting your primary coins, run the following command
docker run -v "$(pwd)"/primary.txt:/app/primary.txt \
-e PUBLIC_KEY=<YOUR_PUBLIC_API_KEY> \
-e SECRET_KEY=<YOUR_SECRET_API_KEY> \
denizgokcin/binance-triangle-arbitrage:latest
If you want to build the container, you can build it with:
docker build -t binance .
The output should look something similar to:
Downloaded in: 3.2185s
Computed in: 0.0379s
BTC->WAN->ETH->BTC 0.0112% <- profit!
WAN / BTC : 30618.49357012
ETH / WAN : 0.00094900
BTC / ETH : 0.03427000