Pages:
Author

Topic: Python Arbitrage trader for various Exchanges - page 2. (Read 11503 times)

newbie
Activity: 36
Merit: 0
September 08, 2013, 08:28:40 PM
#9
getS returning "price get error" for cryptsy LTC

... https://github.com/salfter/PyCryptsy

and when I try BTC-e on it's own:

Code:
Starting Arbitrage checking for Currency ltc
Unhandled exception in thread started by
Traceback (most recent call last):
  File "arbitrage_trader.py", line 180, in run1
    compare() #die Hauptfunktion der Arbitrage
  File "arbitrage_trader.py", line 147, in compare
    if round((int(bprice) * Diff * FEE),8) < round((int(sprice) * FEE),8):
UnboundLocalError: local variable 'bprice' referenced before assignment
newbie
Activity: 36
Merit: 0
September 08, 2013, 08:00:54 PM
#8
Code:
>python arbitrage_trader.py

Starting Arbitrage checking for Currency ltc
Unhandled exception in thread started by
Traceback (most recent call last):
  File "arbitrage_trader.py", line 180, in run1
    compare() #die Hauptfunktion der Arbitrage
  File "arbitrage_trader.py", line 147, in compare
    if round((int(bprice) * Diff * FEE),8) < round((int(sprice) * FEE),8):
ValueError: invalid literal for int() with base 10: 'Market buy price get error'
newbie
Activity: 36
Merit: 0
September 08, 2013, 07:32:51 PM
#7
Checking this out now - I've pushed a copy to Github for collaboration here:

https://github.com/PeanutPower/CryptoArbitrageTrader

(will transfer ownership of repo to John if he so desires)
newbie
Activity: 27
Merit: 0
September 08, 2013, 06:23:42 PM
#6
has anyone tried this? has there been any updates? Very curious.
sr. member
Activity: 363
Merit: 250
Can you put all your files to github?

also
Code:
$ python2 arbitrage_trader.py 
Traceback (most recent call last):
  File "arbitrage_trader.py", line 13, in
    from vircurex import *
ImportError: No module named vircurex
hero member
Activity: 672
Merit: 500
I've had the impression that arbitrage is only possible among a triangle (or square....) of pairs shaping a cycle, for example BTC/LTC, LTC/XPM, XPM/BTC, or for a pair existing in two different markets (like BTC/$ in MtGox and BitStamp).
But I see that in cryptsy almost all alts are traded against BTC which makes me confused about how your trader is supposed to make any arbitrage trade there. Could you explain this?
sr. member
Activity: 462
Merit: 250
Have you used your own trader?  How about some results? 

Yep ofc I use it. Last 3 days a total win of ~0.5 BTC (Low trading volumes for me as i do not have that much funds)
sr. member
Activity: 364
Merit: 250
Have you used your own trader?  How about some results? 
sr. member
Activity: 462
Merit: 250
I wrote an arbitrage trader in Python and want to share it with the community:

https://mega.co.nz/#!X0ZkwRJa!bxdS2Ch2NvXdPDACTsUbYkrlZbN_R9v51OZWkyEj8ms

It does compare the prices sell / buy for various Altcoins on the exchanges: Coins-E, BTC-e, Vircurex and Cryptsy.
It executes the Sell / buy trades as arbitrage of given percentage is found.

Usage:
Edit the config.py with your Keypairs for every exchange
Edit the value "amount" if you like to
Have at least the amount of altcoins you set in the config in your available funds of each exchange. BTC fund has to be highest price altcoin * amount

Run arbitrage_trader.py

It is not totally completed yet, what i will further implement:
 - Error handling on connection errors
 - Percentage of available funds to be traded instead of fixed value
 - Maybe easier edit possibility for more / less coins


If you like this please donate to help my development!
BTC: 1JxT7dgLxbdHR9iBpu7v4z4ph3kjD5pjA9
LTC: LQ32aPGFGwFb7MxvLTai2ePwRFRbnSKpWv


If you encounter any bugs or wish to have more exchanges, or have any other feature request, tell me

Please remember, there is absolutely no guarantee there is any arbitrage at all! I am not responsible for any loss, especially when you modify the code yourself!
Pages:
Jump to: