cryptoeax / arbbot

Arbitrator, a bitcoin/altcoin arbitrage trading bot
https://gitter.im/cryptoeax-arbbot/Lobby
GNU General Public License v3.0
199 stars 78 forks source link

Would this bot need complete re-write for altcoin withdraw? #57

Closed Vaopresso closed 6 years ago

Vaopresso commented 6 years ago

Im wondering if the whole thing would need rewritten to add one step on each exchange.

Just have it convert to doge or digibyte instead of losing on the btc xfers

cryptoeax commented 6 years ago

I'm not sure I understand what you are suggesting.

The problem with your statement is the "Just" part. Can you please clarify how this process would work in excruciating detail if you were to program it yourself? Remember that your balance is on an exchange, so at the time that you want to transfer your bitcoin, you have your exchange APIs to work with, which essentially means you can buy/sell coins on markets and transfer them. Here are a few problems that come to mind:

But to answer your question, no the bot doesn't need to be completely rewritten, once you figured out a proper strategy which answers all such questions and tested it against the market, the code changes are quite simple, around https://github.com/cryptoeax/arbbot/blob/66049a1b78d09666cfe40209f93052ad6a962f11/bot/CoinManager.php#L362.

Vaopresso commented 6 years ago

ah, true true. but ill add, ive never seen a liquidity problem with doge or dgb, the high supply usually means that you can not only get enough, but even if the spreads are off, you wont ever lose as much as if you went with btc everytime. i always use doge for transfers, and i stopped even looking at the price because ive never had a situation where ive lost money going that route than btc,

cryptoeax commented 6 years ago

I'd gladly accept a patch plus the research showing that the approach taken results in a better result. This is definitely an area of the bot that I'd like to improve.

Vaopresso commented 6 years ago

Oh, well if I somehow figure it out, Ill just post a link to what i have just to help out. not really worried about proving anything for a pull request. but ill play around with it.