Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A script to switch between mining Bitcoin and any of the other cryptocoins as profitability dictates.
Python PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
PyCryptsy @ 540aaa5
btce-api @ 575ca98
pyvircurex @ a6d7ee3
.gitignore
.gitmodules
README.md
asiccoin.bat.sample
asiccoin.sh.sample
bitcoin.bat.sample
bitcoin.sh.sample
butterflycoin.bat.sample
butterflycoin.sh.sample
bytecoin.bat.sample
bytecoin.sh.sample
cryptoSwitcher.config.sample
cryptoSwitcher.py
freicoin.bat.sample
freicoin.sh.sample
key.sample
litecoin.sh.sample
ppcoin.bat.sample
ppcoin.sh.sample
switchpool.php
terracoin.bat.sample
terracoin.sh.sample
tigercoin.bat.sample
tigercoin.sh.sample
zetacoin.bat.sample
zetacoin.sh.sample

README.md

CryptoSwitcher

A script to switch between mining BTC and altcoins as profitability dictates, using the powers of http://dustcoin.com.

Dependencies

  • NumPy
  • BeautifulSoup4
  • urllib2
  • simplejson
  • PycURL
  • btce-api (included)
  • pyvircurex (included)
  • PyCryptsy (included)
  • cgminer (optional)
  • vanityminer (optional)

Usage

Edit the scripts such as bitcoin.sh so that they start mining the appropriate coins with your desired settings. I recommend the scripts start the appropriate miner inside a screen session, which the two example scripts I've included will do. Then poke around in `cryptoSwitcher.config.sample to set everything up, including which coins you wish to try and mine or merged mine. Then run

git submodule init
git submodule update

to download the BTC-e, Vircurex, and Cryptsy python APIs. Then rename cryptoSwitcher.config.sample to cryptoSwitcher.config and run

python cryptoSwitcher.py

The script should work out what the best mining option is, and run the appropriate script. It checks every hour for a change in the situation, and if the options is enabled it will also sell any coins that have been auto-withdrawn to BTC-E. I bear no responsibility for any losses you incur by using this script to sell your cryptocoins. If you wish to use these options, set the auto-withdrawal limits at your pools as low as they will go to limit your exposure to a changing exchange rate. You will also need to add your BTC-E API key and secret to the file key.sample and rename it to key.

Thanks

Dustcoin and fizzisist, for doing most of the heavy-lifting of the data, and Alan McIntyre for making the BTC-API used here. sal002 also deserves thanks for http://www.coinchoose.com.

Tips

In hope, not expectation:

  • Bitcoin: 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp

This couldn't have been made without the work of others; if you feel like tipping the other people whose work is used here:

Something went wrong with that request. Please try again.