Add a market order, extract some method in a class