You can download the source code of the trading bot here:

How to install the trading bot

trade.php

This script is for trading bitcoins, litecoins, darkcoins and any other virtual currency on cex.io. You have to replace “USERNAME”, “APIKEY” and “APISECRET” with your the ones you have on cex.io. This script needs the library “cexapi.class.php”.

orders.php

This script provides a web interface to view and manage your active trading orders – manually, from the script. You have to replace “USERNAME”, “APIKEY” and “APISECRET” with your the ones you have on cex.io. This script needs the library “cexapi.class.php”.