Triangular arbitrage (a.k.a. three-point arbitrage)  is a simple way to arbitrage; however it can also be quite rare when there are many people competing for such opportunities.  This article extends the three-point arbitrage to the four-point case, i.e. arbitrage between 4 currency pairs, e.g. BTC, LTC, USDT, USD.

If you multiply the rates of BTC/LTC, LTC/USDT, USDT/USD and USD/BTC, and if the result is greater than 1, there could be arbitrage opportunities. Of course, we have to consider all fees in this trading process. Sounds complicated? Don't worry, the following code is ready for you to use. You can run the code directly by clicking the play button.  

If you need more information on our API, please check https://github.com/coinut/api/wiki