jamesbachini / DEX-Arbitrage

Example arbitrage trading bot
GNU General Public License v3.0
615 stars 350 forks source link

What is minBasisPointsPerTrade ? #9

Closed ingeniumyazilim closed 2 years ago

ingeniumyazilim commented 2 years ago

What is minBasisPointsPerTrade used for ?

jamesbachini commented 2 years ago

It's used in trade.js here to calculate a profit target: https://github.com/jamesbachini/DEX-Arbitrage/blob/48862833e0f896dd590a3ebdaf4ce7ef99dc4f4b/scripts/trade.js#L54

Setting it higher finds less trades but more profitable ones (assuming no one executes it first), setting it to zero will fire on all trades even if profits wont cover transaction costs.

ingeniumyazilim commented 2 years ago

Thanks James

haoolii commented 2 years ago

Any suggestion for minBasisPointsPerTrade ? I set 50 and didn't fire any transaction :(

banlieu451 commented 2 years ago

Maybe its too much and actually too many other bot work

Because 50 the profit possible is bigger so other bot with good hardware performance are for sure actually scan it ...

jamesbachini commented 2 years ago

It depends what your transaction cost is and how large the trade is. Basically when there are gas fees you need the profits to cover the transaction fees. 1 basis point = 1% of 1%.

haoolii commented 2 years ago

OK thanks !! Easy earning is still hard. :)) Aurora per transaction gas fee 0.03 USD. I set 20 minBasisPointsPerTrade is okay. but less chance.