Basic functionality

stolen from https://github.com/alanmcintyre/btce-api