Fix bug with amount for trades

Thanks, ewibit.