Bitcoin Forum
May 14, 2024, 03:50:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Arbitrage Deal Finder  (Read 919 times)
fuchs82 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 24, 2013, 05:07:52 PM
Last edit: November 24, 2013, 05:41:56 PM by fuchs82
 #1

I was bored today, so I wrote a java application to find arbitrage deals based on the market data from http://bitcoincharts.com/
It's a console application printing out an arbitrage deal table similar to http://bitcoin-analytics.com/

Example output (the forum destroys the formatting):
+----------------------------------------------------+-----------+--------+-------+--------+----------+-------+-----------+--------+---------+-------+-------+
|                                                    |bitcurexEUR|btcdeEUR|btceEUR|crytrEUR|intrsngEUR|justEUR|localbtcEUR|mtgoxEUR|rippleEUR|rockEUR|vcxEUR |
+----------------------------------------------------+-----------+--------+-------+--------+----------+-------+-----------+--------+---------+-------+-------+
|bitcurexEUR, ask: 609.0EUR, bid: 595.0EUR           |-2,3%      |-2,13%  |-5,24% |-3,28%  |-12,97%   |-2,79% |21,64%     |0,25%   |-88,18%  |-9,69% |-17,08%|
|btcdeEUR, ask: 600.0EUR, bid: 596.0EUR              |-0,83%     |-0,67%  |-3,82% |-1,83%  |-11,67%   |-1,33% |23,46%     |1,75%   |-88%     |-8,33% |-15,83%|
|btceEUR, ask: 588.74897EUR, bid: 577.05901EUR       |1,06%      |1,23%   |-1,99% |0,04%   |-9,98%    |0,55%  |25,82%     |3,7%    |-87,77%  |-6,58% |-14,22%|
|crytrEUR, ask: 887.99999999EUR, bid: 589.00000002EUR|-33%       |-32,88% |-35,02%|-33,67% |-40,32%   |-33,33%|-16,58%    |-31,25% |-91,89%  |-38,06%|-43,13%|
|intrsngEUR, ask: 560.0EUR, bid: 530.0EUR            |6,25%      |6,43%   |3,05%  |5,18%   |-5,36%    |5,71%  |32,28%     |9,02%   |-87,14%  |-1,79% |-9,82% |
|justEUR, ask: 618.87EUR, bid: 592.0EUR              |-3,86%     |-3,7%   |-6,76% |-4,83%  |-14,36%   |-4,34% |19,7%      |-1,35%  |-88,37%  |-11,13%|-18,4% |
|localbtcEUR, ask: 310.8EUR, bid: 740.78EUR          |91,44%     |91,76%  |85,67% |89,51%  |70,53%    |90,48% |138,35%    |96,44%  |-76,83%  |76,96% |62,48% |
|mtgoxEUR, ask: 618.993EUR, bid: 610.52EUR           |-3,88%     |-3,71%  |-6,77% |-4,85%  |-14,38%   |-4,36% |19,68%     |-1,37%  |-88,37%  |-11,15%|-18,42%|
|rippleEUR, ask: 618.88EUR, bid: 71.99999999EUR      |-3,86%     |-3,7%   |-6,76% |-4,83%  |-14,36%   |-4,34% |19,7%      |-1,35%  |-88,37%  |-11,13%|-18,4% |
|rockEUR, ask: 599.0EUR, bid: 550.0EUR               |-0,67%     |-0,5%   |-3,66% |-1,67%  |-11,52%   |-1,17% |23,67%     |1,92%   |-87,98%  |-8,18% |-15,69%|
|vcxEUR, ask: 600.0EUR, bid: 505.001EUR              |-0,83%     |-0,67%  |-3,82% |-1,83%  |-11,67%   |-1,33% |23,46%     |1,75%   |-88%     |-8,33% |-15,83%|
+----------------------------------------------------+-----------+--------+-------+--------+----------+-------+-----------+--------+---------+-------+-------+

Read it this way: You buy from the left hand market to the ask price and sell it on the header-list market to the bid price.


Feel free to use, fork, extend:

https://bitbucket.org/fuchs82/bitcoin-arb

Happy arbitrage trading ;-)
Fuchs82

--
Donations: 171B7YyhB1Na37BE8aScEct8R2ojxC8PJG
1715658611
Hero Member
*
Offline Offline

Posts: 1715658611

View Profile Personal Message (Offline)

Ignore
1715658611
Reply with quote  #2

1715658611
Report to moderator
1715658611
Hero Member
*
Offline Offline

Posts: 1715658611

View Profile Personal Message (Offline)

Ignore
1715658611
Reply with quote  #2

1715658611
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715658611
Hero Member
*
Offline Offline

Posts: 1715658611

View Profile Personal Message (Offline)

Ignore
1715658611
Reply with quote  #2

1715658611
Report to moderator
1715658611
Hero Member
*
Offline Offline

Posts: 1715658611

View Profile Personal Message (Offline)

Ignore
1715658611
Reply with quote  #2

1715658611
Report to moderator
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
November 24, 2013, 08:47:45 PM
 #2

Haven't checked the code, but I hope that you implemented something to ensure this:
http://bitcoincharts.com/about/markets-api/
Quote
Don't query more often than once every 15 minutes!

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
fuchs82 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 24, 2013, 09:06:47 PM
 #3

You shouldn't run this program in a loop. I added a note to the readme, thanks for the tip.
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 24, 2013, 09:16:24 PM
 #4

You shouldn't run this program in a loop. I added a note to the readme, thanks for the tip.

Not even if the loop waits 15 minutes before fetching data again ? ...

Just point the person to the terms of service from where this fetches data, and say you're not responsible about its usage. Don't assert things that you can't, the other service is subject to changes at any point.
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
November 25, 2013, 12:55:49 AM
 #5

https://github.com/timmolter/XChange - just implement this instead, then you could even do automated trading.

Edit: Enabling people to abuse a free and very useful service is just what you might call a "dick move". Also a great way to get your IP banned...

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 25, 2013, 01:40:15 AM
 #6


Edit: Enabling people to abuse a free and very useful service is just what you might call a "dick move". Also a great way to get your IP banned...

You are targeting the wrong person here, or are you going to blame me for putting http://api.bitcoincharts.com/v1/markets.json (hey please don't visit this more than once each 15 minutes) here ?

If bitcoincharts can't handle the traffic then it needs to restrict the queries itself, you cannot expect the people from internet to suddenly follow your arbitrary limitations. If you are unhappy with that, you should go after the mighty creators of the internet, or at least more specifically, the ones that defined the http protocol.
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!