Deal processing is divided into sell transaction and buy transaction
processing to avoid deadlocks in wallet transaction processing.