bmino / binance-triangle-arbitrage

Detect in-market cryptocurrency arbitrage
MIT License
1.08k stars 340 forks source link

All arbitrage opportunities showing negative #103

Closed ken4ward closed 4 years ago

ken4ward commented 4 years ago

@bmino Thanks. I'm just trying out your project and I believe it's something very good. I started it and all the arbitrage opportunities displays negative, does this mean it'll be a loss if i take the trade?

If the trade is switched in the opposite triangular direction would it make profit? What I mean by this is that if trade is BTC->CRT->ETH is -0.65, if switched would it not become ETH->CRT->BTC profit of +0.65?

Do I need to do some tweaking to get the revert the negative to positive? Thanks. Hoping to hear from you ASAP.

bmino commented 4 years ago

Great! Thanks for the interest!

does this mean it'll be a loss if i take the trade?

If you have configured the bot correctly those negative values in the PROFIT column mean exactly what you think they mean: that executing that position would result in a loss, yup. The good news, is that the bot will not make those trades (unless you set your minimum profit in the config to be something negative). What you are seeing is the HUD which displays the top 10 "most profitable" positions known at the current time.

If the trade is switched in the opposite triangular direction would it make profit?

You can run the math with a specific example and you'll find that running ie BTC -> CRT -> ETH does not yield the inverse profit as ETH -> CRT -> BTC

Also, the bot will only calculate one of the above positions depending on the base symbol you provide in the config file.

ken4ward commented 4 years ago

Thanks @bmino . I appreciate the insight. If I plan starting this project with $500 investment. What's the best config param you'd advise I use? I totally new to this bot and very hopeful I have landed the gold mine with it. :)

bmino commented 4 years ago

Start with the example config provided. Take a read through the README located in the config directory to better understand each option.

For starters, I would recommend reducing the TRADING.AGE_THRESHOLD down to something like 10 - 30

bmino commented 4 years ago

The configuration options are available to tweak the bot to your needs, equipment, bankroll, etc. If a config option isn't clear, I can help sort that out :)

dlasher commented 4 years ago

The reason the "reverse" trade wouldn't be profitable either, is your fees. 0.1% per trade, 3 trades, is 0.3% fees backward and forward.