update package.json
error handling in trader.js
take fee into account both when buying and selling, even though its usually the fiat side that pays