implemented distinction between buy- and sell-orders