Closed Vaopresso closed 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:
What if there aren't enough sell orders for doge/digibyte open at the time for the BTC amount you want to transfer? Should you wait? What if it takes 2 hours? Should you place a market order? What if you end up buying your transfer altcoin at a crazy high price?
What if you successfully bought your doge/digibyte and transferred it to the target exchange, and then the reverse of this problem happened, not enough buy orders open for doge/digibyte there to get your BTC back? Similar dilemmas as before.
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.
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,
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.
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.
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