karthik947 / BinanceTriangularArbitrage_v2

This is the new version of Binance Triangular Arbitrage finder.
MIT License
264 stars 101 forks source link

does it account for fees? #4

Open majiddjango opened 4 years ago

majiddjango commented 4 years ago

hi there, i have seen your YT video great work, Congrats. but i was wondering ,does it account for fees?

salian commented 3 years ago

The script currently does not account for fees. So it might give an impression there are many existing arbitrage opportunities on Binance.

The first version of the script actually accounted for fees so I'm not sure why this check was removed in this second version.

The workaround is to subtract 3x of your trading fee from the profit.

Binance charges 0.075% fee for a trade if you pay in BNB. As a triangular arbitrage includes 3 trades, we can say anything less than (0.075 x 3) = 0.225% is not profitable. If you aren't paying in BNB then goes up to 0.3%.

Assuming you will pay in BNB, you can account for transaction fees by using profit > 0.226 as a filter criteria.