Bitcoin Forum
December 11, 2024, 12:24:33 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Understanding Triangular Arbitrage  (Read 174 times)
Vernum (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 26, 2017, 03:13:12 PM
 #1

So i saw an opportunity trying to arbitrage with 3 pairs on Bittrex. It was just a test with a semi-small amount. I didn't really expect it to work within the same exchange, but it looked like it'll work.
If i calculate what happened, it should have worked, but it didnt and i am not really sure why.

This was my arbitrage path starting with 0.1 ETH.

BTC-ETH ->  BTC-1ST -> ETH-1ST

Sell ETH for BTC, Buy 1ST with BTC, Sell 1ST for ETH.

This is what the trades looked like:
https://abload.de/img/lolwhat5dskg.jpg

I started with 0.1 ETH and i ended up with 0.09580303 ETH.

So i thought that maybe price changed in between trades and made the opportunity vanish. So i calculated the rates at which the trades sold at market conditions (Actual Rate in the picture).

(1 / 0.04740000) * 0.00005890 * (1 / 0.00119958) = 1.0358759

So it is > 1 and should have made me ETH profit, right? 1.03 is approximately 3 percent and Bittrex has a fee of 0.25% per trade. It still should have made me a bit over 2% profit.

What am i missing here? Also: I don't really understand the Costs / Proceeds from Bittrex in the picture. In what currency is this? Why are there negative values?

Thanks in advance for any help.




Serpens66
Legendary
*
Offline Offline

Activity: 2968
Merit: 1133



View Profile
December 26, 2017, 04:04:49 PM
 #2

the calculation should be:
1 * 0.0474 / 0.0000589 * 0.00119958 = 0.9653665874

the costs are the values you get/pay. 
So in the third line you got that many BTC for your sell -> positive.
In second line, you paid that many BTC to buy 80 1ST
And in first line you got so many ETH for selling 1ST

Mit Cointracking (10% Rabatt) behältst du die Übersicht über all deine Trades und Gewinne. Sogar ein Tool für die Steuer ist dabei Wink                          
Great Freeware Game: Clonk Rage
binance.com hat nun auch SEPA und EUR Paare! Mit dem RefLink bekommst du 5% Rabatt auf die Tradinggebühren!
Vernum (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 26, 2017, 04:23:30 PM
 #3

I am so stupid.  Cheesy
Forget my thread. hehe

Thank you very much!
e19293001
Jr. Member
*
Offline Offline

Activity: 120
Merit: 1


View Profile
January 24, 2018, 04:45:31 PM
 #4

I am so stupid.  Cheesy
Forget my thread. hehe

Thank you very much!

No. Your post was interesting. At least for me Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!