optimize when given one order return this order price