+1 for 2.6
Debian squeeze has 2.5, 2.6 and 3.0 in repo.
I just installed goxtool on a squeeze box and I made this script to help anyone else in the same situation.
# Installing python2.7 on debian stable and running goxtool
# Tested on virgin debian squeeze install with sudo installed
####################################################
# Part 1: Install python2.7
# First get some tools
sudo apt-get install build-essential
# and some libs
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev
# Optional bits and bobs
#sudo apt-get build-dep python
# starting at home
cd ~
# Get and compile Python-2.7.4
wget wget http://python.org/ftp/python/2.7.4/Python-2.7.4.tar.bz2
tar xf Python-2.7.4.tar.bz2
cd Python-2.7.4/
./configure --prefix=/usr/local
make
# This make takes about 5 mins on an old virtual machine
# Now you have 2 options:
# 1. install the new python
# sudo make altinstall
# 2. create a new debian package and install python 2.7 into debian package system
# sudo checkinstall make altinstall
# I prefer checkinstall, though it will take longer
sudo apt-get install checkinstall
# There is a bug and checkinstall will fail because some directories could not be created.
# So just create them manually right now.
sudo mkdir -p /usr/local/lib/pkgconfig
sudo mkdir -p /usr/local/lib/python2.7/config
# Install and create the debian package
sudo checkinstall --pkgname=python2.7 --pkgversion=2.7.4 make altinstall
# checkinstall took about 45 minutes on my slow VM
# have a look at the new python
python2.7 --version
# and still we have the original 2.6 as the system wide default
python --version
# get back to home
cd ~
# install a python package manager
# this will install the script 'easy_install-2.7'
wget https://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz
tar xvf distribute-0.6.36.tar.gz
cd distribute-0.6.36/
sudo python2.7 setup.py install
####################################################
# Part 2: Install goxtool
# get back to home
cd ~
# install a means to segregate python applications
sudo easy_install-2.7 virtualenv
# get latest goxtool
git clone https://github.com/prof7bit/goxtool.git
# create a new python2.7 environment for goxtool
virtualenv-2.7 --distribute goxtool
# switch to the new environment
source goxtool/bin/activate
# check it worked - you should see 2.7.4 as the version number
python --version
# get the packages required for goxtool
easy_install-2.7 pycrypto
# fire her up and get trading
python goxtool/goxtool.py --protocol=socketio --use-http
I've only just discovered this project with it's balance bot and I love it and have been running it for the last day and a half on the 7% default.
I'm going to try some different margins on other accounts with like half a coin balance and see how they each perform over time.
My first trading bot.
One issue. During setup I balanced the account and then hit 'p' to place the buy/sell orders but I think I went too fast because the price was around 123 and the bot miscalculated my center and put in buys and sells at 80/90 something. MtGox ignored the low sell but I did panic.
Also the graph is using a lot of screen space so could do with a toggle for switching between other information sets. I'm a C++ programmer by trade but I'm keen to help out with this projects so I'm currently looking at the code.
Graph area could switch between log, graph, more detailed order book stats, strategy provided info.
Strategy provided would be the obvious solution to all as then you could have empty strategies that only provide information screens. Then just have a mechanism to cycle through them. So even the current graph would end up in a strategy.
Thanks for your work prof7bit.