balinskia / binance-arbitrage-trading

Tool used for three pair arbitrage trading
4 stars 0 forks source link

Story

Current prices of BTC, ETH, BNB (date 02.19.2018 22:23):

This means you can buy/sell:

If I want to buy BNB, first by buying ETH for BTC, and then by buying BNB for this ETH I get:

1 BNB = 0.0117870 ETH = 0.011787 * 0.0841690 BTC = 0.0009921 BTC

We can sell 1BNB for 0.009924 BTC, so our profit (without fees):

0.009924 - 0.0009921 = 0.000003 BTC

Total fee = 0.015%

Total fee = 3 * (0.009924 * 0.015%) = 0.000005 BTC

So we can see that this trade is not profitable

This software tries to find such pairs with maximum profit, looking at the pairs in file: pairs.js