add buy order and sell order function