fix crypto-trade code using https://github.com/PeanutPower/crypto