- see what coins are tradable for BTC on Cryptsy
- check CoinWarz for profitability information (tested with scrypt coins, but others should work)
- find the most profitable coin to mine that we'll be able to trade for BTC
- call a shell script to switch pools, if necessary
- wait and repeat
You'll need API keys for both Cryptsy and CoinWarz. CoinWarz charges for use of its API after the first 1000 calls; checking once per hour, you should be able to try out this script for six weeks before running out.
Grab it from https://github.com/salfter/coinswitch. PyCryptsy is included as a submodule, so you'll want to grab it as well:
git clone https://github.com/salfter/coinswitch
cd coinswitch
git submodule init
git submodule update
See the README for further details. coinswitch itself is in Python, but it calls shell scripts to do the actual switching, which can have their own dependencies. (Mine depend on a PHP script I knocked together for use with CryptoSwitcher. For that matter, the shell scripts are the same ones I used with CryptoSwitcher.)