by mrdmnd · 8y ago · 0 comments
The trick is to transform the graph by taking the negative log of the edge weights, which turns problem of finding a cumulative product > 1 into one of finding a negative sum loop. Then, you can just run the Bellman Ford algorithm and if it detects a negative cost cycle in the transformed graph, this corresponds to a positive arbitrage cycle in the original graph.
I always thought that was a neat application.
For cryptocoins it's nearly impossible. Because in most cases there's no idea when the actual transfer will be executed (if arbitraging between exchanges).
Concretely, imagine if every ten minutes you made an arbitrage buy on GDAX, and sell on BitFinex. As long as GDAX remains the “buy side” of the arbitrage, you will need to keep refilling your fiat funds at GDAX. You could “keep it filled,” but this becomes more unsustainable as you deplete your bankroll. You will eventually need to rebalance which will affect your velocity.
Disclaimer: I am not a financial professional.
Source: I tried to make money arbitraging BTC back in 2015. I made a 2x return, entirely because of inflation, realized I didn't understand anything I was doing and pulled my 8k out. If only I had kept it in :)
When you look at the price history (and open orders history) between some pairs on one exchange you'll find that during these spikes there was no arbitrage being done at all.
One example is seeing the price on ETH-BTC pair being constant despite BTC dropping 10-20%, and then combing back in 5-10 minutes.
Although I did recently see a more sophisticated example of arbitrage where you have money on all the exchanges at once and then you don't actually do a transfer, but you long on one and short on the other. However, I don't think it would work w/ bitcoin b/c I don't think shorting is much of a thing yet.
While transaction costs are easy to model in LPs, transaction clearing times are much harder. To the point where most opportunities are better described as phantasma.